Forked repository combine with oiginal repository #145171
-
Select Topic AreaQuestion BodyHow can I keep my forked repository up to date with the original repository? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To keep your forked repository up to date, you can follow these steps: 1.Add the Original Repository as a Remote: Run git remote add upstream in your terminal. |
Beta Was this translation helpful? Give feedback.
To keep your forked repository up to date, you can follow these steps:
1.Add the Original Repository as a Remote: Run git remote add upstream in your terminal.
2.Fetch the Changes: Use git fetch upstream to get the latest changes from the original repository.
3.Merge the Changes: Switch to your main branch with git checkout main, then run git merge upstream/main to merge the changes into your fork.
4.Push the Updates: Finally, run git push origin main to update your forked repository on GitHub.