2

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?

alroc
  • 27,574
  • 6
  • 51
  • 97
Tim Jahn
  • 1,154
  • 7
  • 16
  • 29
  • Was it ever added to the repo? I.e. `git add ` – David Aug 08 '12 at 18:54
  • Yes. I had it added originally and added it to Exclude so it wouldn't overwrite the version already up in my remote. Now I want to overwrite the remote version. – Tim Jahn Aug 08 '12 at 18:57

1 Answers1

5

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

    git add -f .htaccess
Thomas Frei
  • 141
  • 7