[英]How to ignore git controlled file for pending changes locally
在我的项目中,团队不应该签入对schema.rb的更改。 但是,Schema.rb由git控制。
基本上,我只是不想看到schema.rb显示为有待处理的更改。
这可能是您要寻找的:
git update-index --assume-unchanged <file>
然后如果您要撤消该操作
git update-index --no-assume-unchanged <file>
查看此链接 ,看来您可能要使用
git update-index --skip-worktree
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.