iOS-Github上托管本地项目
来源:互联网 发布:刘杀鸡 知乎 编辑:程序博客网 时间:2024/05/16 04:55
有时候玩github难免会踩坑,记录一笔流水账,完整的讲述一个项目在geihub上从无到有的过程->
1.github后台新建项目
2.配置项目
3.上传本地已经存在的项目即需要托管的项目
3.1在终端 cd 到项目所在文件夹内
3.2 $ git init (初始化一个本地的 git仓库)
3.2.1 $ git add .
3.3 $ touch README.md (工程代码的介绍)
3.4 $ git add README.md (添加到仓库中)
3.5 $ git commit -m “first” (提交备注) ->注意是英文标点
3.6 $ git remote add origin https://github.com/qxuewei/XWBorderImage (添加本地仓库origin和指定远程仓库地址 链接为刚才新建远程仓库的链接)
3.6.1 $ git remote -v
3.7 $ git pull –rebase origin master (pull 远程仓库到本地) -> 注意rebase之前是两个小横线
3.8 $ git push origin master (push 本地仓库到远程仓库)
如果出现push到远程仓库确不显示的情况就是本地github账号没有配置成功
需要在终端执行:
git config - -global user.name “username”
git config - -global user.email “username@mail.com”
配置你自己的github账号,尤其是邮箱,不能出错!
最终你的项目就会成功托管到github上了->
参考链接:
http://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to
http://www.techug.com/github-3
http://blog.csdn.net/duxinfeng2010/article/details/8654690
- iOS-Github上托管本地项目
- Github上托管项目
- 将本地项目通过git操作放到GitHub上托管
- 在github上托管项目
- 在GitHub上托管项目
- 在github上托管项目
- 如何在github上托管项目
- 将本地项目提交到coding上托管
- 将本地项目提交到coding上托管
- git 将本地项目提交到coding上托管
- 两分钟在github上托管代码
- Android代码在github上托管
- git 在github上托管代码
- 如何免费在github上托管私有项目?——使用价值¥40的学生优惠
- 在Google code上托管项目
- 怎样在Github上托管开源代码库
- 快速学会Mac上托管代码到github(详解)
- 怎样在Github上托管开源代码库
- Android中FlowTagLayout流式布局的使用
- android studio volley JsonObjectRequest错误处理
- jquery数组字典和数组
- C++静态库与动态库
- POJ1308 Is It A Tree?
- iOS-Github上托管本地项目
- Android 的 LiveReload — jimu Mirror
- hibernate二级缓存
- 关于matlab做图像处理的一些小tips
- 串口通信数据位长度对传输数据的影响
- 用十年学习编程 / Teach Yourself Programming in Ten Years
- oralce 常用日期函数
- 随机梯度下降法
- Xcode 真机调试:While reading /Users/wangan/Documents/..../bg.png pngcrush caught libpn