我想从git存储库中删除几个文件。我的仓库有几个分支,我也下:从git下删除档案库
git rm --cached filename
git commit -am "deleted filename"
git checkout anotherbranch
我越来越:
error: The following untracked working tree files would be overwritten
by checkout:
output/filename
Please move or remove them before you can switch branches.
Aborting
所以问题是如何从回购删除文件(小心加入)?我不想通过git跟踪文件名我打算将这个文件名添加到.gitignore。
最好的问候,
彼得