Skip to content

Forked repository combine with oiginal repository #145171

Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Nipz66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question
2 participants