.gitignore file only works if the file is not in remote, and .gitignore file is placed in the working git directory.
To manually remove path
https://stackoverflow.com/questions/1274057/how-do-i-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore
git rm --cached <path>
No comments:
Post a Comment