I\'m trying to remove a previously tracked directory from git, which works, but it\'s being added back with each subsequent git add .
, git add -A
, etc.
I've found a way to add files to .gitignore even if they have already been commited once. It's a bit brutal but it works great.
Add the different files to your .gitignore
Move these files out from your git project
Rescan & StageChanged, these operation will tell you that these files have been deleted
Commit
Move back your files to your project, they won't be tracked anymore !