How to merge a gist on GitHub?

I have a gist on GitHub that someone forked and made changes to. I like their changes.

Is there a way to merge the changes back into my original gist?

  • How can one setup a version control system on a local network, without a server?
  • Git “force push” from new local repo to remote, but keeping remote commit history
  • Can not figure out how checkout works in git
  • Share Common codes between multiple projects
  • How to update git repo or to create if there is no such repo
  • synchronization of several remote git repositories
  • Moving from ClearCase to Mercurial: your top tips?
  • Isn't it strange to have branches for totally unrelated code with master?
  • One Solution collect form web for “How to merge a gist on GitHub?”

    A gist operates like any other repository. So let’s say you’ve cloned something like git://

    $ git clone

    (If you just wanted to try this without pushing, you can use git://, which will demonstrate the merge principle and works anonymously, but does not allow you to push.)

    And now you want to merge in changes from git:// Add it as an additional remote:

    $ git remote add changes git://
    $ git fetch changes

    And then merge in the changes like this:

    $ git merge changes/master

    And you should be all set. This should work regardless of whether the new gist was forked from yours at some previous point or is completely unrelated.

    Taking Romain’s comment into account, you would then issue a push:

    $ git push

    This would only work if your original clone URL allows writing.

    Git Baby is a git and github fan, let's start git clone.