News for hackers. Stuff that matters.
Re:Ask HN: Little hacks that make your life easier? by rushi_agrawal on Saturday July 19, 2014 @03:01AM (#8056900)
As someone who use git quite a lot, I have created a TON of aliases for it, so that I have to type very less. Sometimes, I have created bash functions as it needs to handle some logic too.

For example: gl (git log), gb (git branch), gr (git remote -v), gpom (git push origin master), gpuom (git pull origin master), gcam (git commit -a -m), gcaa (git commit --amend -a), gc <github-ID>/<repository> (git checkout -b https://github.com/$1), etc

Re:Ask HN: Little hacks that make your life easier? by attilagyongyosi on Saturday July 19, 2014 @06:20AM (#8057121)
This is exactly what I did when we started our current project at work, on which we use Git. I also made aliases gl, gr, gb. gc means 'git commit -m' for me, and I have gco for 'git checkout', gcb for 'git checkout -b', gpod for 'git push origin develop' and gpud for 'git push upstream develop'. Made my life so much easier. :)
Re:Ask HN: Little hacks that make your life easier? by rushi_agrawal on Saturday July 19, 2014 @03:14AM (#8056920)
I've very recently started adding all of it to a github repo. Very early version, but can be found at https://github.com/rushiagr/myutils/blob/master/aliasrc