Hacker News new | ask | show | jobs
by jeffhuys 3184 days ago
No. I have aliases for most things git:

gs = git status

ga = git add

gc = git commit

gp = git push

gl = git pull

gt = git tag

1 comments

I never started with those two-letter aliases because they're bound to become problematic:

- gs is ghostscript

- gc is a component of graphviz

...and all of a sudden your text editor can't generate PDFs anymore when started from the shell.

Instead, I use four-letter aliases which work fine:

- gits = git status

- gitd = git diff

- gitc = git commit

..etc

I aliased 'g' to 'git'. Combined with git aliases ('st' for 'status' etc) this is almost as short but doesn't steal all the short names from your shell. So instead of 'gs' you have 'g st'. Upside is you save two letters even on uncommon git commands :)