创建新分支:
git branch <branch_name>
查看分支列表:
git branch --list
删除分支:
git branch -D <branch_name>
切换分支:
git checkout <branch_name>
设置分支提交目标:
git push --set-upstream origin <branch_name>
提交代码,同步到服务器:
git commit -a -m "comments"
git push
创建新分支:
git branch <branch_name>
查看分支列表:
git branch --list
删除分支:
git branch -D <branch_name>
切换分支:
git checkout <branch_name>
设置分支提交目标:
git push --set-upstream origin <branch_name>
提交代码,同步到服务器:
git commit -a -m "comments"
git push
评论