.bashrc:<p><pre><code> alias g='git'
</code></pre>
.gitconfig:<p>Tons of aliases, but most often used are:<p><pre><code> a = add
amend = commit --amend
b = branch
co = checkout
po = pull origin
fa = fetch --all
reb = rebate
reba = rebase --abort
rebm = rebase master
unstage = git rm --cached
</code></pre>
As TFA demonstrates, it's also possible to alias full-blown shell commands and even multiple shell (or git) commands, which is powerful.<p>Someday I would like to give jj a real try, too.<p><a href="https://github.com/jj-vcs/jj" rel="nofollow">https://github.com/jj-vcs/jj</a>