If you want to push a git to several remote repositories at one, use this simple command: git remote set-url –add –push [repository] [url] For example, here’s how I add Ignition’s GitHub repo to origin: git remote set-url –add –push origin https://github.com/nicbou/Ignition
You can set aliases for common git commands using the following command: git config –global alias.poule pull In this instance, we create an alias for git pull so git poule does a pull. Since we have used the –global flag, this applies to all of your projects. Here is a more useful alias. It shows […]
If you are looking to find a git commit by its message, use the following command: git log -S”facebook” This will return all commits with “facebook” in the message.
Although I always take the right measures to keep my database passwords to myself, I’ll sometimes accidentally push a settings file with a little bit too much information and only notice a few commits later. Fortunately, I always notice before other people start pulling my work from the public repo. In this tutorial, I will […]
I have stumbled upon a very nice Sublime Text 2 plugin that will show the git diff next to each line in your code. You can download the GitGutter plugin here.