Git push
獲取遠程代碼修改后,想要push到遠端與原來不同的新分支,可以使用下面的命令實現:
git push origin 本地分支:遠端希望創建的分支
例如git下來的分支為master
git branch
>>> *master
git push origin master:my_remote_new_branch
#遠端即可創建新的分支my_remote_new_branch,提交本地修改

icon from easyicon
Git push
獲取遠程代碼修改后,想要push到遠端與原來不同的新分支,可以使用下面的命令實現:
git push origin 本地分支:遠端希望創建的分支
例如git下來的分支為master
git branch
>>> *master
git push origin master:my_remote_new_branch
#遠端即可創建新的分支my_remote_new_branch,提交本地修改

icon from easyicon
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。