I created a gist, then someone else forked it and improved it. With a full repository, I might get their improvements in a pull request. But that isn't availabe for gists.
This is how to get their changes into my gist.
-
Clone your own gist
git clone git@gist.github.com:YOUR_GIST_ID_GOES_HERE.git
-
Rename your gist's git folder for easy reference
See https://www.computerhope.com/issues/ch000846.htm for your OS
E.g.
rename "YOUR_GIST_ID_GOES_HERE" "gisty-mcgistface"
-
Change directory to go into that folder
cd gisty-mcgistface
-
Add their gist as a branch
git remote add THEIRUSERNAME git@gist.github.com:THEIR_GIST_ID_GOES_HERE.git git fetch THEIRUSERNAME git checkout -b THEIRUSERNAME-master THEIRUSERNAME/master
-
Switch back to your master branch
git checkout master
-
Merge their gist into yours
git merge THEIRUSERNAME-master
-
Push the newly merged gist back to GitHub
git push
You can condense steps 1 & 2 into