Skip to content

Instantly share code, notes, and snippets.

@jt
Created Aug 23, 2011
Embed
What would you like to do?
Merge a forked gist

If someone forks a gist and you'd like to merge their changes. Do this:

  1. clone your repo, I use the name of the gist

     git clone git://gist.github.com/1163142.git gist-1163142
    
  2. add a remote for the forked gist, I'm using the name of my fellow developer

     git remote add aaron git://gist.github.com/1164196.git
    
  3. pull and merge the new remote into master

     git pull aaron master
    
  4. push the changes

     git push
    
@tobiasmcnulty

This comment has been minimized.

Copy link

@tobiasmcnulty tobiasmcnulty commented Jun 6, 2019

This doesn't seem quite right. In case it's helpful to anyone else, I add to use a : instead of a / between the domain and the repository, i.e.:

git clone git://gist.github.com:1163142.git gist-1163142`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment