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