Search code examples
git.htaccessgit-tower

How do I re-add a file to my git repo that was previously being ignored and won't show up now?


I originally had .htaccess on my exclude list for my Git repository. I've removed it from the exclude list now (and double checked it's off the ignore list too).

I changed the file locally, but Tower (my git client) isn't showing the file as changed and ready to be committed remotely.

How do I get Tower to recognize that the file is changed and available for commit?


Solution

  • You need to add the file with the -f flag:

        git add -f .htaccess