git ignore的作用很简单,本地仓库忽略一些文件的修改。
Step1: 先将该文件从git的文件系统和索引上删除
git rm -f a.md
Step2: 添加对该文件的ignore配置
.gitignore文件
a.md ··· Step3:修改该文件 这时候,对文件的修改就不会出现在git中了