git-sync

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Git Sync

Git Sync

Sync local branch with remote using rebase.
  1. Fetch the latest changes from the remote repository.
    • Command:
      git fetch origin
  2. 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
      .
使用rebase将本地分支与远程分支同步。
  1. 拉取远程仓库的最新变更。
    • 命令:
      git fetch origin
  2. 拉取远程分支内容并将当前分支变基到远程分支之上。
    • 命令:
      git pull origin HEAD --rebase
    • 如果出现冲突,解决冲突后执行
      git rebase --continue