等价于“git update-index --assume-unchanged”在SourceTree中 [英] Equivalent to "git update-index --assume-unchanged" in SourceTree

查看:197
本文介绍了等价于“git update-index --assume-unchanged”在SourceTree中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我在填充数据库密码后,在数据库配置文件中使用了 git update-index --assume-unchanged ,因为我不想使用我的数据库密码以进入公共代码库。



现在我想尝试使用SourceTree一段时间,但我找不到一种方法来完成它:文件应该保留在存储库中,但我只是希望SourceTree忽略工作副本中该文件的更改。

SourceTree可能没有这种方式来操纵索引的功能(尽管我可能是错的,但似乎并不是这样)。但是,这并不意味着您不能下载到终端以发布该命令,但是继续使用SourceTree来处理其他任何事情。


So far I used git update-index --assume-unchanged on the database configuration file after I filled in the database password because I don't want my database password to get into the public code repository.

Now I wanted to try and use SourceTree for a while and I can't find a way to do the same with it: The file should remain in the repository but I just want SourceTree to ignore changes to that file in my working copy.

解决方案

It is quite likely that SourceTree doesn't have a feature for manipulating the index in that way (although I could be wrong, but it doesn't seem to). However that doesn't mean you can't drop down to the terminal in order to issue that command, but continue to use SourceTree for everything else.

这篇关于等价于“git update-index --assume-unchanged”在SourceTree中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆