仓库搭建
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.csdn.net/hijiankang/article/details/47254179
http://blog.csdn.net/wh_19910525/article/details/7438183