One that I find myself using probably more than I should is <i></i>undo<i></i>:<p><pre><code> # undo the last commit
undo = reset --soft HEAD^
redo = reset 'HEAD@{1}'
</code></pre>
Another is a quick update method for repos that I'm not contributing to, but might be dirty:<p><pre><code> up = !git fetch && git rebase --autostash FETCH_HEAD
</code></pre>
And for those times I forget those aliases I don't use as often:<p><pre><code> # list aliases
la = "!git config -l | grep alias | cut -c 7-"</code></pre>