Useful git tips

This is a collection of useful git commands, aliases, tips and tricks that I've come across or been using. Feel free to contribute to this collection by adding a comment below.

Aliases for ignoring files

To prevent changes in already-commited files from being commited, you can update your index with the --assume-unchaged flag for the files that you don't want to commit. Here are a couple of useful aliases for dealing with this.