- 查看远程分支
$ git branch -a
*master
remotes/origin/HEAD -> origin/master
remotes/origin/master
- 查看本地分支
$ git branch
*master
3.创建分支
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.把分支推到远程分支
$ git push origin test
5 删除本地分支
$ git branch -d test
6.删除远程分支,如我有个分支为test
$ git push origin :test
网友评论