git-sync
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGit Sync
Git Sync
Sync local branch with remote using rebase.
-
Fetch the latest changes from the remote repository.
- Command:
git fetch origin
- Command:
-
Pull and rebase the current branch on top of the remote branch.
- Command:
git pull origin HEAD --rebase - If there are conflicts, resolve them, then .
git rebase --continue
- Command:
使用rebase将本地分支与远程分支同步。
-
拉取远程仓库的最新变更。
- 命令:
git fetch origin
- 命令:
-
拉取远程分支内容并将当前分支变基到远程分支之上。
- 命令:
git pull origin HEAD --rebase - 如果出现冲突,解决冲突后执行 。
git rebase --continue
- 命令: