Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How many times do you type "git status" in your typical workday?


Dozens, sometimes a hundred.

So I use similar shortcuts and like them. There's nothing wrong with creating shortcuts for almost everything. Some shortcuts I remember better than others; the ones I don't remember I just type out in full, and eventually I either get inspired to remember the shortcut or the shortcut evolves out of my config file.

I use the trick of aliasing "git" to "g", which I learned from Howard Yeh:

http://www.metacircus.com/hacking/2011/02/18/play-git-like-a...

That's an easy one.


Not nearly as often as I type actual code or need to think about something. Plus in normal usage it's "g<up arrow>" since I have shell history searching.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: