If you want, you can grab this script and put it somewhere in your $PATH . Once this is done, you can do the following:
- Using
HTTPS clone any text from gist.github.com (or if you already have the cloned meaning, go to the next step) - From anywhere in the gist git directory tree, run the command
git-change-url --to-ssh
Now, provided that your public key is uploaded to your github account (it must be specified here ), you should be able to work with gist via SSH , without having to enter your github credentials.
Much less error than manually editing git configuration files.
Ps: If you find any errors in the script or make any additions, feel free to fork: D
Sankalp Apr 27 '14 at 22:38 2014-04-27 22:38
source share