Why Is Gitignore Not Ignoring
Gitignore Only Ignores Files That Are Not Part of the Repository Yet. If You Already Git Add Ed Some Files, Their Changes Will Still Be Tracked. to Remove...
gitignore only ignores files that are not part of the repository yet. If you already git add ed some files, their changes will still be tracked. To remove those files from your repository (but not from your file system) use git rm –cached on them.
Why is my Gitignore not ignoring?
gitignore only ignores files that are not part of the repository yet. If you already git add ed some files, their changes will still be tracked. To remove those files from your repository (but not from your file system) use git rm –cached on them.
Must Read
How do I ignore a .gitignore file?
- Add to your ~/.gitconfig file: [core] excludesfile = /home/username/.gitignore.
- Create a ~/. gitignore file with file patterns to be ignored.
- Save your dot files in another repo so you have a backup (optional).