Git Notes

Bash Aliases

I have compiled a whole bunch of aliases that let me shorten most of the git
commands that I use down to 3 characters. Due to some ambiguity with the three
leter aliases there are a few longer aliases near the bottom too. I have tried
to choose short aliases that would be intuitive to remember:

Tricks

Pushing to multiple URLs:

Set up a new remote to push to multiple URLs at once (i.e. push to both
bitbucket and github at the same time). Create a new remote with an
appropriate name; the URL used when creating this remote will only be used
for fetching. Next run the following command for each push URL you wish to
add to the remote:

git remote set-url --add --push <remote-name> <push-url>

Fixing commit authorship on any commits with matching name/email in history: