.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.
More Related Contents:
- .gitignore is ignored by Git
- ignoring any ‘bin’ directory on a git project
- Gitignore not working
- How to create a .gitignore file
- Should I check in folder “node_modules” to Git when creating a Node.js app on Heroku?
- Using git, how do I ignore a file in one branch but have it committed in another branch?
- How do I add files without dots in them (all extension-less files) to the gitignore file?
- Whitelisting and subdirectories in Git
- How do I make Git forget about a file that was tracked, but is now in .gitignore?
- When would you use .git/info/exclude instead of .gitignore to exclude files?
- How do .gitignore exclusion rules actually work?
- What is .gitignore?
- How to exclude file only from root folder in Git
- Apply .gitignore on an existing repository already tracking large number of files
- How do I use Bash on Ubuntu on Windows (WSL) for my VS Code terminal?
- Visual Studio Code cannot detect installed git
- What’s the difference between Git ignoring directory and directory/*?
- How to manage configuration files when collaborating?
- git still shows files as modified after adding to .gitignore
- Git: How to remove file from index without deleting files from any repository
- Can I make a user-specific gitignore file?
- Git: Ignoring Version-Controlled Files
- Visual Studio Code is always asking for Git credentials
- How do negated patterns work in .gitignore?
- Why is git is ignoring files that aren’t in the .gitignore file?
- What to gitignore from the .idea folder?
- Unignore subdirectories of ignored directories in Git
- Changing the Git user inside Visual Studio Code
- gitignore by file size?
- VS Code / Bitbucket / SSH – Permission denied (publickey)