Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created August 30, 2019 22:21
Show Gist options
  • Save ziadoz/b5437b556c58cd33d970af71c21819fc to your computer and use it in GitHub Desktop.
Save ziadoz/b5437b556c58cd33d970af71c21819fc to your computer and use it in GitHub Desktop.
Cloning Github Gists

Cloning Github Gists

To clone a gist:

git clone [email protected]:[GIST ID].git

If you need to add a remote to an existing repository:

git remote add origin [email protected]:[GIST ID].git
git pull origin master --allow-unrelated-histories
git push --set-upstream origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment