搜索
您的当前位置:首页正文

Git 分支管理

来源:二三娱乐
1.创建本地分支

命令:git branch -b 本地分支名xxx 远程主分支名xxx

git branch -b Gundam origin/master

2.将本地分支发布到远端

命令:git push origin 本地分支名xxx

git push origin Gundam

3.删除本地分支

命令:git branch -d 本地分支名xxx

git branch -d Gundam

4.删除远端分支

git push origin :Gundam //一定要在origin后面带上空格

Top