Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update GitHub forked repository using TortoiseGIT?

I forked a repository, made some changes, submitted a pull request, and had my changes accepted. Now several months later my branch doesn't have any of the changes other contributors have made.

I've found this info: How do I update a GitHub forked repository?

Which was somewhat useful, but I'm using TortoiseGIT, not the command line GIT. So these instructions don't work for me. How would I manage this with TortoiseGIT?

Charles.

like image 861
ChopperCharles Avatar asked Jan 17 '13 16:01

ChopperCharles


People also ask

How do I update a forked repo on GitHub?

Syncing a fork branch from the web UI On GitHub, navigate to the main page of the forked repository that you want to sync with the upstream repository. Select the Sync fork dropdown. Review the details about the commits from the upstream repository, then click Update branch.

How do I update my forked library?

Go to your GitHub account, under your forked repository. Click the compare and pull request button. And you are done. Wait for your content to be reviewed, make changes where necessary and your pull request will be merged to the team project.

How do you update a repo after fork?

Go to your fork, click on Fetch upstream , and then click on Fetch and merge to directly sync your fork with its parent repo. You may also click on the Compare button to compare the changes before merging.


1 Answers

Since your branch has been accepted and merge into the original repo, you don't need it anymore.

You can simply update your local master to reflect the original repo master branch, by pulling it.
See "Can I update a forked project, on git, to the original/master copy?", for TortoiseGit instruction.

The TortoiseGit pull dialog box will allow you to chose the remote repo from which you want to pull.

like image 106
VonC Avatar answered Oct 15 '22 14:10

VonC