Git使用(一)

查看本地分支:git branch
查看所有分支:git branch -a
新建本地分支:git branch 分支名称
新建远程分支:git push origin 本地分支名称 (当前分支作为模版)
删除本地分支:git branch -D 本地分支名称
删除远程分支:git push origin :本地分支名称
本地分支推送到远程分支: git push origin 本地分支名称:远程分支名称
切换本地分支:git checkout 本地分支名称

你可能感兴趣的:(Git使用(一))