我创建了一个项目,并使用了svn import.现在我想对文件进行更改,如何做到这一点?
我有空~/.workspace/project/.svn/entries.
如果我尝试svn commit我得到这个:
$ 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
Run Code Online (Sandbox Code Playgroud)
目录
......或者只是svn commit:
$ svn commit
svn: Can't read file '/home/st/.workspace/dat/.svn/entries': End of file found
Run Code Online (Sandbox Code Playgroud)
Mat*_*yra 11
svn import将未版本控制的文件提交到存储库(可能是在远程主机上).完成此操作后,您需要将存储库签出到您自己的计算机上作为工作副本使用
svn checkout http://some.repository.net/trunk/ /my/local/path/to/workingcopy
Run Code Online (Sandbox Code Playgroud)
这将检查从回购到您的机器的行李箱到文件夹/ my/local/path/to/workingcopy.改变然后做.
svn commit -m "A comment telling what you did the which file"
Run Code Online (Sandbox Code Playgroud)
或者如果您将一些文件添加到工作副本中:
svn add /path/to/file /path/to/otherfile
Run Code Online (Sandbox Code Playgroud)
要么
svn add /path/to/dir --force
Run Code Online (Sandbox Code Playgroud)
这将把目录中的所有内容及其所有子目录添加到工作副本中,最后
svn commit -m "who did what why"
Run Code Online (Sandbox Code Playgroud)