我最初签入了一个文件并将其拉到开发服务器上。现在,我不再想跟踪它们,因为每台计算机的设置都不同。在第一次拉动之后,我更改了几行代码。
在我的.gitignore文件中,我有以下内容:
config/hostname.rb现在,每当我在开发服务器上使用git pull时,我都会得到这样的错误:
error: Your local changes to 'config/hostname.rb' would be overwritten by merge. Aborting.
Please, commit your changes or stash them before you can merge.我怎么才能摆脱这个呢?
发布于 2011-05-07 14:09:42
# ignore changes in a working tree file
git update-index --assume-unchanged config/hostname.rbhttps://stackoverflow.com/questions/5919449
复制相似问题