【发布时间】:2014-03-31 04:22:12
【问题描述】:
我已将文件添加到 gitignore:
db/development.sqlite3
log/development.log
我已将它们从本地计算机和服务器上的跟踪中删除:
git rm --cached db/development.sqlite3
git rm --cached log/development.log
然后我从本地计算机推送到 repo,并使用
拉到服务器git pull origin master
我仍然收到此错误:
error: The following untracked working tree files would be removed by merge:
db/development.sqlite3
log/development.log
Please move or remove them before you can merge.
我不希望这些文件被覆盖或删除,我只想让 git 提取所有内容并忽略存储我的数据库信息的现有文件。我该如何克服这个问题?
【问题讨论】:
标签: git sqlite gitignore git-pull