Git ignore files that have been submitted

Executive order: git rm --cached .idea/gradle.xml, then submit.
If errors are reported, try adding -f,git rm --cached -f .idea/gradle.xml

Note has been submitted to Git server file, even if you update the .gitignore documents submitted to the next also will not be neglected, ignored this document only works for files that have not been submitted.

Details Reference: https: //segmentfault.com/q/1010000000430426

Published 96 original articles · won praise 57 · views 110 000 +

Guess you like

Origin blog.csdn.net/lyabc123456/article/details/104503024