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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A gist operates like any other repository. So let’s say you’ve cloned something like git://gist.github.com/2322786.git:
(If you just wanted to try this without pushing, you can use
git://gist.github.com/2322786.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://gist.github.com/2661995.git. Add it as an additional remote:
And then merge in the changes like this:
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:This would only work if your original clone URL allows writing.