Git push

获取远程代码修改后,想要push到远端与原来不同的新分支,可以使用下面的命令实现:
git push origin 本地分支:远端希望创建的分支


例如git下来的分支为master

git branch
>>> *master
git push origin master:my_remote_new_branch
#远端即可创建新的分支my_remote_new_branch,提交本地修改

git push代码到远程新分支
icon from easyicon


ref:
git 教程
blog

相关文章:

  • 2022-02-07
  • 2022-01-19
  • 2022-12-23
  • 2021-11-07
  • 2021-05-22
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2022-02-07
  • 2022-02-07
  • 2021-10-17
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案