I. Problems
After a project cloned from the server is repaired locally and some cached files are generated, confirm that the project can be submitted to the remote branch, the cache file is included in the scope of submission. check the gitignore file and find that the directory of the cached file has been included in the ignore queue. This indicates that the ignore file does not take effect.
Ii. cause of the problem
After a new understanding of git version control, we found that those directories that do not take effect are because these directories or files have been staged, that is, these files or directories have been included in version control management, as a result. invalid gitinore File
Iii. Solution
1GitRm-R --Cached.2 Git add.3Git commit-m'Update. gitignore'
GitRm-r --Cached.Clear the temporary storage area.
Solution for git version management. gitignore does not work