Git 分支操作

创建分支

D:\workspace\android>git checkout -b develop_test origin/develop_main
Switched to a new branch 'develop_test'
Branch 'develop_test' set up to track remote branch 'develop_main' from 'origin'.

本地分支推送到远程

D:\workspace\android>git push origin develop_test
Total 0 (delta 0), reused 0 (delta 0)
To ssh://*******android.git
 * [new branch]      develop_test -> develop_test

删除本地分支

D:\workspace\android>git branch -D develop_test
Deleted branch develop_test (was 413fa2c).

删除远程分支

D:\workspace\android>git push origin --delete develop_test
To ssh://**********/android.git
 - [deleted]         develop_test

你可能感兴趣的:(git,branch)