Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update fork on GitHub for Windows?

Tags:

I am currently using the Windows Github GUI and its pretty cool looking and easy so I'm trying to use it as often. A problem I encountered is when I fork a project I don't know how to update that fork with the git

like image 680
TakaGoto Avatar asked Nov 16 '12 02:11

TakaGoto


People also ask

How do I update my local forked repository?

To sync your forked repo with the parent or central repo on GitHub you: Create a pull request on GitHub.com to update your fork of the repository from the original repository, and. Run the git pull command in the terminal to update your local clone.

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.

Does GitHub fork update?

Tip: Syncing your fork only updates your local copy of the repository. To update your fork on GitHub.com, you must push your changes.

Does a forked repo get updated?

Before you can sync, you need to add a remote that points to the upstream repository. You may have done this when you originally forked. Tip: Syncing your fork only updates your local copy of the repository; it does not update your repository on GitHub.


1 Answers

And just for reference I copy here the detailed instructions from a post at http://processwire.com/talk/topic/1565-github-for-windows/:

  • In "GitHub for Windows" local repositories view, right-click and choose "open a shell here"
  • This will open a shell already in the right directory. Type the following commands:
# Assigns the original repo to a remote called "upstream"
git remote add upstream https://github.com/path_to_your_repository.git 

# Pulls in changes from the original repo not present in your local repository, 
# without modifying your files. 
# Allows you to review first.
git fetch upstream 

# merge fetched changes into your working files.
git merge upstream/master 
like image 194
Gustav Delius Avatar answered Sep 22 '22 00:09

Gustav Delius