When I’m coding and I need to remove a file, I rarely remember to
use git rm instead of rm. It’s just ingrained in my fingers I
guess. Unfortunately, this means that when I create my commit I end
up with a bunch of files that I need to use git rm on.
It’s not exactly a hardship, but here’s a simple method for doing that:
Just put that into your .bashrc and you’re ready to go.