有时候我们gitignore文件中写错了一些条目,知道commit的时候才发现。有时修改gitignore发现没有作用。需要运行以下代码: 123456 git rm -r --cached .# add all files as per new .gitignoregit add .# now, commit for new .gitignore to applygit commit -m ".gitignore is now working" 赞微海报分享
近期评论