Skip to content

Instantly share code, notes, and snippets.

@freejoe76
Forked from maglietti/gistColaboration.md
Last active June 21, 2018 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save freejoe76/f28d47c9ee46445b6a13a9c839c629e8 to your computer and use it in GitHub Desktop.
Save freejoe76/f28d47c9ee46445b6a13a9c839c629e8 to your computer and use it in GitHub Desktop.
How to collaborate on a gist

How to collaborate on a gist

  1. Clone your gist repo locally, i.e. git clone git@gist.github.com:f28d47c9ee46445b6a13a9c839c629e8.git gist-collaboration
  2. Add your friend’s fork as a remote e.g. if your friend is named Cindy: git remote add blergh https://gist.github.com/cindy/df03bdacaef75a80f310
  3. Fetch your friend’s commits: git fetch blergh
  4. Merge your friend’s changes into your repo: git merge blergh/master
  5. Push the changes back to GitHub: git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment