i have committed just some files of those that i have modified. As you can imagine the rest of the files that i havent committed are showed when i do "svn status".
How can i make "dissapear" those files that are showed when i do "svn status"? Should i revert one by one? A normal revert (svn revert -R .) will revert also the files that i have committed?
Regard开发者_如何学Gos
Javi
If you're on a linux box do:
svn status | grep ^M | awk '{print $2}' | xargs svn revert
Once you commit something, it is no longer "modified" until you modify it again, so there is nothing to "revert".
svn revert -R .
will only revert modified files in the working copy. Any files that you've already committed and that have no more modifications in the current directory will be left
untouched.
Or, if you prefer, svn revert -R .
will make your working copy look like the current state of the repository.
精彩评论