最想知道的git操作系列(2)---新建本地分支并上传为远程分支

1、建立本地分支

git branch test

2、切换到你的分支

git checkout test

3、将新建的本地库推送到远程库

git push --set-upstream origin test

4、查看本地和远程分支

git branch -a

猜你喜欢

转载自blog.csdn.net/gosenkle/article/details/83244745
今日推荐