Gitignore not ignoring file

If after you’ve updated .gitignore to ignore a file and the changes are not being ignored, do the following:

git rm /path/to/your/file --cached

 
This will remove the file from the repository, but not from the file system.

ABOUT THE AUTHOR

Anthony Leon

Author has no description.

NO COMMENTS

Leave a comment

Your email is never published or shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>