How do I move a file (or folder) from one folder to another in TortoiseSVN?

前端 未结 10 782
死守一世寂寞
死守一世寂寞 2020-12-22 15:25

I would like to move a file or folder from one place to another within the same repository without having to use Repo Browser to do it, and without creating two independent

相关标签:
10条回答
  • 2020-12-22 15:31

    From the command line, you can type svn mv path1 path2. This will create an add and a delete operation, but there's not really a way around that - as far as I know - in Subversion.

    0 讨论(0)
  • 2020-12-22 15:32

    In Windows Explorer, with the right-mouse button, click and drag the file from where it is to where you want it. Upon releasing the right-mouse button, you will see a context menu with options such as "SVN Move versioned file here".

    http://tortoisesvn.net/most-forgotten-feature

    0 讨论(0)
  • 2020-12-22 15:34

    If you want to move files around and keep the csproj files up to date, the easiest way is to use a Visual Studio plugin like AnkhSVN. That will automatically commit both the move action (as an delete + add with history, because that's how Subversion works) and a change in the .csproj

    0 讨论(0)
  • 2020-12-22 15:34

    Subversion does not yet have a first-class rename operations.

    There's a 6-year-old bug on the problem: http://subversion.tigris.org/issues/show_bug.cgi?id=898

    It's being considered for 1.6, now that merge tracking (a higher priority) has been added (in 1.5).

    0 讨论(0)
  • 2020-12-22 15:35

    Under TortoiseSVN, see the following page: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-copy.html

    0 讨论(0)
  • 2020-12-22 15:37

    Use the svn move command to move file/folder.

    0 讨论(0)
提交回复
热议问题