svn up不起作用

时间:2012-12-03 16:53:58

标签: svn

如果我有来自存储库的文件a.cpp,并且出于测试目的,我会从该文件中删除一行。在做了一个svn之后,我收到一条消息,说我是最新版本,但删除的行没有添加回来。我在Macintosh命令行终端使用svn。这听起来像个svn bug吗?

1 个答案:

答案 0 :(得分:4)

update子命令将存储库中的更改带到您的工作副本中。它不会破坏未提交的本地更改:

C:\>svn help update
update (up): Bring changes from the repository into the working copy.

您需要revert子命令:

C:\>svn help revert
revert: Restore pristine working copy file (undo most local edits).

有关详细信息,请参阅Version control with Subversion

相关问题