Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 671 Bytes

File metadata and controls

17 lines (12 loc) · 671 Bytes

日常同步流程(上游 Elite-Robots → 你们组织 ScienceOL)

先更新远程信息:git fetch --all --prune 切到主分支:git checkout main 同步上游到本地:git pull --rebase upstream main 推送到组织仓库:git push origin main 同步标签:git fetch upstream --tags && git push origin --tags

遇到冲突时

先看状态:git status 解决冲突后继续:git add -A && git rebase --continue 想放弃本次同步:git rebase --abort

可直接复制的一键命令

git checkout main && git fetch --all --prune && git pull --rebase upstream main && git push origin main && git fetch upstream --tags && git push origin --tags