1.查看所有分支(-a=>'查看全部的分支')
git branch -a
2.創建本地test分支
git branch test
2.2切換test分支
git checkout test
3.把本地test分支推送到遠程(本地的test分支推送到遠程test分支)
git push --set-upstream origin test
git branch -a
git branch test
git checkout test
git push --set-upstream origin test
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。