“Git how to push to origin repository”的版本间的差异
来自个人维基
free6d1823(讨论 | 贡献) (以“* 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...”为内容创建页面) |
free6d1823(讨论 | 贡献) |
||
第5行: | 第5行: | ||
* Push my changes to the remote repository for review. | * Push my changes to the remote repository for review. | ||
− | <source lang=" | + | <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