Git will not ignore the file if you've already committed it.
You'll have to untrack the file first, then it will start ignoring it.
You can untrack the file with this command:
More info about using .gitignore file can be read from this blog
You'll have to untrack the file first, then it will start ignoring it.
You can untrack the file with this command:
git rm --cached FILENAME
More info about using .gitignore file can be read from this blog
Comments