如果我要放弃我的所有改动,回到存放地的法典,我就做如下工作:
$ rm -fr *
$ svn up
这足够容易,但我不禁要问,是否有一个能够做到这一点的单一指挥,例如:
$ svn revert-all
如果我要放弃我的所有改动,回到存放地的法典,我就做如下工作:
$ rm -fr *
$ svn up
这足够容易,但我不禁要问,是否有一个能够做到这一点的单一指挥,例如:
$ svn revert-all
你可以做到:
svn revert -R .
这不会删除任何未经版本控制的新档案。 但是,你可以很容易地写出一幅手脚的文字,这样做:
for file in `svn status|grep "^ *?"|sed -e s/^ *? *// `; do rm $file ; done
指挥部
svn revert -R .
OR
you can use the --depth=infinity, which is actually same as above:
svn revert --depth=infinity
<>代码>svn re 具有内在危险,因为其全部宗旨是放弃数据,即您的未经同意的改动。 一旦你回来,颠覆就没有办法收回这些未兑现的变化。
利用回收开关——收回
svn revert -R .
重述经修改的档案:
sudo svn revert
svn status|grep "^ *M" | sed -e s/^ *M *//
重述经修改的档案:
svn revert -R <path_to_directory>
I have a svn repo with various apps as subdirectory of a single svn repo. That worked because I could have checked out a partial, repo. As I cant do that with git obviously I need multiple repos. I ...
I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...
I m trying to commit some work, but svn always fails and tells me that a file I modified is out of date. I tried updating first, that doesn t work. Cleanup doesn t work. If I revert the file, copy my ...
我制作了一个外事文件,将印刷成文件,以了解它收到的第一和第二个论点。
I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...
A subversion repository contains the html, latex and man directories that doxygen generates from the source code. Even for small source code changes, new files are being generated with random names ...
So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...
Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...