Managing Gists Locally

$ git clone https://gist.github.com/DannyQuah/5f43f9b75970bc4e357e42c7c9214b5d
$ mv -i 5f43f9b75970bc4e357e42c7c9214b5d localGistFolder
$ # changes ... 
$ git commit -m "The new changes"
$ git push
$ git remote add myGithub https://github.com/DannyQuah/myGistProject
$ git push myGithub master
$ git remote rename origin myGist
$ # changes ...
$ git commit -m "The new changes"
$ git push myGithub master # to github
$ git push myGist master # to gist

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Danny Quah

Danny Quah

22 Followers

Danny Quah is Dean and Li Ka Shing Professor in Economics at the Lee Kuan Yew School of Public Policy, NUS.