Ignore .git directory when renaming within files

Otherwise, the git index and package files become corrupt and it's a big mess.