- 查看遠(yuǎn)程分支
$ git branch -a
*master
remotes/origin/HEAD -> origin/master
remotes/origin/master
- 查看本地分支
$ git branch
*master
3.創(chuàng)建分支
Jojo@Jojo-PC MINGW64 /f/workspace/dg_zichan (master)
$ git branch test
Jojo@Jojo-PC MINGW64 /f/workspace/dg_zichan (master)
$ git branch
*master
test
4.把分支推到遠(yuǎn)程分支
$ git push origin test
5 刪除本地分支
$ git branch -d test
6.刪除遠(yuǎn)程分支拷窜,如我有個分支為test
$ git push origin :test