Git is telling me to commit some 10000 changes but here's the catch, I deleted the folder in which the files to commit are located. Any thoughts on how I can stop git from telling me this.
Asked
Active
Viewed 163 times
0
-
Did you check the `git status` after deleting the `folder` that contains `tracked changes`? – Abdul Haseeb Aug 20 '22 at 11:24
3 Answers
0
Run git reset --hard origin/<branch_name>
and the branch will realign with your origin counterpart.

Umberto
- 46
- 6
0
If you want your directory or files
to do not track by git
Run this command
git update-index --assume-unchanged <directory> or <file>

Abdul Haseeb
- 514
- 4
- 13
0
If those files in the folder are don't need in repo, you may add the folder path into .gitignore file. then git won't ask again to commit changes.

Sujith
- 165
- 2
- 6