标签:branch push article tail remote sharp symfony blog har
命令如下:
1:本地创建分支dev
Peg@PEG-PC /D/home/myself/Symfony (master) $ git branch dev
2:下面是把本地分支提交到远程仓库
Peg@PEG-PC /D/home/myself/Symfony (master) $ git push origin dev Total 0 (delta 0), reused 0 (delta 0) To git@github.com:TuringTD/Symfony.git * [new branch] dev -> dev
3:查看一下远程仓库有几个分支
Peg@PEG-PC /D/home/myself/Symfony (master) $ git branch -a dev * master *号代表你现在所在的分支 remotes/origin/HEAD -> origin/master remotes/origin/dev 远程仓库dev分支 remotes/origin/master 远程仓库master分支
这篇博文比较全面:推荐一下http://blog.csdn.net/arkblue/article/details/9568249/
标签:branch push article tail remote sharp symfony blog har
原文地址:http://www.cnblogs.com/Amos-Turing/p/6285390.html