本文介绍了SVN导入后如何提交更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个项目,并使用了 svn import
.现在我想提交对文件的更改,该怎么做?
I've created a project, and used svn import
. Now I'd like to commit a change to files, how to do that?
我有空 ~/.workspace/project/.svn/entries
.
如果我尝试 svn commit 我得到这个:
If I try svn commit I get this:
$ svn commit src/dat/Win.java
svn: '/home/st/.workspace/dat/src/dat' is not a working copy
svn: Can't open file '/home/st/.workspace/dat/src/dat/.svn/entries': No such file or
目录
... 或者只是 svn commit
:
$ svn commit
svn: Can't read file '/home/st/.workspace/dat/.svn/entries': End of file found
推荐答案
在提交之前,您需要检出刚刚导入的文件的新副本.删除(或重命名)您的项目目录,然后执行 svn checkout [REPOSPATH]
.然后你有一个工作副本.更改工作副本中的文件后,您可以使用 svn commit
.
Before committing, you need to checkout a fresh copy of the just imported files. Delete (or rename) you're project directory, and do svn checkout [REPOSPATH]
.Then you have a working copy. After you change a file in you're working copy, you can use svn commit
.
在SVN 书.
这篇关于SVN导入后如何提交更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!