Skip to content

[toc]

1、分支

查看分支

bash
git branch

切换分支

bash
git checkout <分支>

创建并切换分支

bash
git checkout -b <分支>

拉取远程分支

bash
git pull origin develop

删除分支

git branch -d <分支名>

推送分支

bash
git push -u origin <分支>

删除远程分支

git push origin --delete <分支名>