Mark's Blog About Search Activity

Git fetch upstream changes

I have been trying to contribute where I can w/ the AngularJS project. The workflow is very well documented here.

As documented in this post, you first need to create a remote known as ‘upstream’:

git remote add upstream git://github.com/user/repo.git

Then run these commands to get the latest for master and upstream and merge into the current branch:

git fetch origin -v; 
git fetch upstream -v; 
git merge upstream/master

The original post has a handy tip to put this in an alias.

If you liked this post, you can share it with your followers or follow me on Twitter!
comments powered by Disqus