Update a forked git clone with latest changes from its original source - Cobbled Code

Note to self:

…want to create a pull request on a repository I already cloned some time ago, but… how do I get it up to date again?

Probably hopefully only changed stuff in a branch, so let’s checkout the master branch first:

git checkout master

Add upstream for the remote repository:

git remote add upstream [email protected]:bueltge/Remove-Comments-Absolutely.git

Fetch upstream repository:

git fetch upstream

Finally, merge into master branch:

git merge upstream/master

Via Stack Overflow, of course.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.