Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不小心在我的工作副本目录中添加了一些文件,当我运行 svn status 时,它们标有问号(项目不受版本控制)。我想通过将文件添加到版本控制来纠正这个问题,但我不确定删除文件并尝试 svn 添加它们的后果是什么。谁能推荐最好的方法?谢谢。
您想使用svn add <file>,即使在创建文件之后。如果删除它们,存储库将保持不变。只有通过添加文件并提交它们,您才能更改存储库。
svn add <file>