Force add despite the .gitignore file


Is there a way to force git to add a file despite the .gitignore file?


See man git-add:

   -f, --force
       Allow adding otherwise ignored files.

So run this

git add --force my/ignore/

How do you attach a new pull request to an existing issue on github?

Temporarily switch working copy to a specific Git commit