仓库搭建
http://www.cnblogs.com/qianxudetianxia/archive/2015/09/20/4824536.html
代码push:
$ git remote add origin git@127.0.0.1:/home/git/res.git
$ git push origin master
$ git clone git@127.0.0.1:/home/git/res.git
参考:http://www.cnblogs.com/whthomas/p/3643974.html
push 开发分支:
4、推送本地分支local_branch到远程分支 remote_branch并建立关联关系
a.远程已有remote_branch分支并且已经关联本地分支local_branch且本地已经切换到local_branch
git push
b.远程已有remote_branch分支但未关联本地分支local_branch且本地已经切换到local_branch
git push -u origin/remote_branch
c.远程没有有remote_branch分支并,本地已经切换到local_branch
git push origin local_branch:remote_branch
参考:
http://blog.youkuaiyun.com/hijiankang/article/details/47254179
http://blog.youkuaiyun.com/wh_19910525/article/details/7438183
本文介绍了如何使用Git搭建本地仓库,并提供了详细的命令说明来帮助读者掌握如何进行代码的推送(push)、克隆(clone)及不同场景下分支的管理。
2435

被折叠的 条评论
为什么被折叠?



