link in description for more detail article reset .gitignore file contents to its previous state, commit, specified in Git’s index and removing file using “git rm” since it is not yet in git’s index or else would have to use “git rm –cached”. Git will ignore or skip changes made to a file in working directory or worktree when this bit “–skip-worktree” has been sat to that file. Git will not list that file, as file in git’s index is already updated and being ignored its changes in working directory or worktree, when “Git status” is called to show any changes. files on which “–skip-worktree” bit has been sat can be listed using “git ls-files -v | grep ^S” Resetting “–skip-worktree” bit using “–no-skip-worktree” file will let Git again be able to show changes made to file in working directory or worktree. Removing “git rm” new files and putting .gitignore file to its committed version using “git checkout”.