Solution for .gitignore not taking effect

Sometimes .gitignore will not take effect, because if a file has been tracked by git, it will continue to be tracked, as long as the git cache is cleared, the command is as follows:

git rm -r --cached .

git add .

git commit -m 'clean cache'

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325165634&siteId=291194637