1..gitignore配置不生效的解决办法
git rm -r --cached .
git add .
git commit -m update .gitignore
2.Push was rejected, and update failed with error.
$git pull origin master --allow-unrelated-histories
$git push origin master:master
本文介绍了解决.gitignore文件配置不生效的方法,包括使用`git rm -r --cached .`清除缓存,更新.gitignore文件后重新提交更改。此外还提供了当推送被拒绝时如何通过允许无关历史记录来解决问题。
1..gitignore配置不生效的解决办法
git rm -r --cached .
git add .
git commit -m update .gitignore
2.Push was rejected, and update failed with error.
$git pull origin master --allow-unrelated-histories
$git push origin master:master
9211
1242
3万+
3312

被折叠的 条评论
为什么被折叠?
