Sometimes you want to tell git to temporarily ignore a file. (E.g., if you locally want to remove ads for testing or disable authentication).
Add the commands below to your ~/.gitconfig file to get three commands git ignore <file>, git unignore <file> and git ignored (to list all of the ignored files).
Enjoy!

    [alias]
      ignore = update-index --assume-unchanged
      unignore = update-index --no-assume-unchanged
      ignored = !git ls-files -v | grep '^[[:lower:]]' | cut -f2 -d'
Shared publiclyView activity