git修改.gitignore 使用和.gitignore 无效的解决方法

git cooljun 2773℃ 0评论
git rm -r --cached .
git add .
git commit -m 'edit .gitignore'
git rm -r --cached .vscode # 将文件夹从暂存区中删除
git commit -m 'delete .vscode config' # 将修改后的暂存区合并到HEAD中
git push origin master # 推到远端

转载请注明:cooljun小窝 » git修改.gitignore 使用和.gitignore 无效的解决方法

如果你觉得这篇文章对你有帮助,请支持我继续更新网站 !捐赠本站
喜欢 (58)or分享 (0)

您必须 登录 才能发表评论!