# リポジトリのフォークと同期 - [リポジトリをフォークする - GitHub Docs](https://docs.github.com/ja/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo#configuring-git-to-sync-your-fork-with-the-upstream-repository) - [フォークを同期する - GitHub Docs](https://docs.github.com/ja/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork#syncing-a-fork-branch-from-the-command-line) ```sh git clone https://github.com/YOUR-USERNAME/Spoon-Knife cd Spoon-Knife git remote add upstream https://github.com/ORIGINAL-OWNER/Spoon-Knife.git git remote -v ``` ```sh git fetch upstream git checkout main git merge upstream/main ```