Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git does not detect change in file

Tags:

git

I am tracking my home dir in a repo, with lots of ignores. I have just modified my .bashrc and git does not realize about it. That means that:

  1. .bashrc is being ignored: no, since it is not in the .gitignore
  2. it is set as assume-unchanged (git update-index --assume-unchanged). According to this I can list those files, and it is not in the list.

I am out of ideas. What could be going on?

like image 509
blueFast Avatar asked Nov 08 '22 08:11

blueFast


1 Answers

git add .bashrc should help.

If you specify the file you want to add instead of just git add -A will add it even if it is ignored.

like image 69
phaberest Avatar answered Nov 15 '22 06:11

phaberest