git how to force git to track a file code example Example: Force add despite the .gitignore file git add --force my/ignore/file.foo