Skip to content

Instantly share code, notes, and snippets.

@weiserr
Forked from maglietti/gistColaboration.md
Created October 10, 2016 15:44
Show Gist options
  • Save weiserr/3903d08c48c105ee1f8f180a1fdbf86a to your computer and use it in GitHub Desktop.
Save weiserr/3903d08c48c105ee1f8f180a1fdbf86a to your computer and use it in GitHub Desktop.
How to collaborate on a gist

To colaborate on a gist:

  1. Clone your gist repo locally
  2. Add your friend’s fork as a remote e.g. if your friend is named Cindy: git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310
  3. Fetch your friend’s commits: git fetch cindy/master
  4. Merge your friend’s changes into your repo: git merge cindy/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