Tag: Git

Mirror git repository

I had to push to 2 GitHub repositories from 1 SVN repository. After some searching I came with the following solution. I suppose there are better ways to do this, but this works for me: After you pushed to the first repository, just use the following command to push to another one:

Github gh-pages and master

I often create a gh-pages branch for my Github projects as a simple website for the master branch. These are the commands to keep gh-pages up to date with the master branch and push everything to the remote: # In master: git add . git commit -m "A commit" git push origin master git checkout […]