I am working on a small project with gist and since it is growing I would like to put it on github.
Let's suppose that:
- my gist repo is at: https://gist.github.com/1234
- my new (empty) repo is at: https://github.com/ChrisJamesC/myNewProject
The ideal solution would be one that pushes my changes on both the gist and the github repository.
Best Answer
You can add the github repository as a remote to your checked out gist repository.
Push it to initialize the git on github
This will also change the upstream of the branch, so github will be default.
You now can rename the remote of gist:
Each time you make changes (or pull changes from github/gist), you can do:
This will also push back your changes to the gist and not only the github repo.