Git Put

nicole

Posted by nicole at June 20th, 2008

I had zero experience using version control before I began working for ENTP, so starting fresh with Git was a breeze. The only problem I found was when I when it came time to git push, I always seemed to push branches I didn't mean to push. Luckily, my pal Trevor showed me how to create an alias for a new command - git put. This neat trick (using newer versions of git) ensures only the 'current' branch is pushed.

Paste this into your $HOME/.gitconfig file and never worry about accidentally pushing that p0rn branch again.


[alias] 
  put = push origin HEAD


Make your voice heard

We value freedom of speech, but please don't be an asshat. You can use Textile in your comments. Surround code in a <macro:jscode lang="LANG"> block.