“Git how to push to origin repository”的版本间的差异

来自个人维基
跳转至: 导航搜索
(以“* Push my changes to the remote repository. <source lang="awk"> git push origin master </source> * Push my changes to the remote repository for review. <source lang...”为内容创建页面)
 
第5行: 第5行:
  
 
* Push my changes to the remote repository for review.
 
* Push my changes to the remote repository for review.
<source lang="shell">
+
<source lang="awk">
 
git push origin HEAD:refs/for/<branch>
 
git push origin HEAD:refs/for/<branch>
 +
</source>
 +
 +
* If your local repository is older than the central, you will need to rebase on top of the origin.
 +
<source lang="awk">
 +
git pull --rebase origin master
 
</source>
 
</source>

2022年4月11日 (一) 08:50的版本

  • Push my changes to the remote repository.
git push origin master
  • Push my changes to the remote repository for review.
git push origin HEAD:refs/for/<branch>
  • If your local repository is older than the central, you will need to rebase on top of the origin.
git pull --rebase origin master