7
votes
2answers
1k views

How to alias 'git' to 'g' so that bash-completion rules are preserved?

If I do this: alias g='git' I loose all completion rules (i.e. branches and remotes are no longer being automatically completed when I hit TAB after typing, for example g push o).