先更新远程信息: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