Skip to content

Instantly share code, notes, and snippets.

@maglietti
Created August 21, 2015 16:33
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save maglietti/498638aa208e25c4ef40 to your computer and use it in GitHub Desktop.
Save maglietti/498638aa208e25c4ef40 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
@AndersBillLinden
Copy link

That is something else than collaboration?

@zolotokrylin
Copy link

@AndersBillLinden, the instruction above is more about maintaining your own fork. Looks like there is no way to share "edit" permissions for gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment