Export svn from HEAD

I am doing svn export from a working copy that I have, but I'm not sure how to do svn export from my latest version in the repository.

This is what I am using now:

svn export /path/to/working/dir , which exports the dir folder to the current directory in which I am located.

+4
source share
1 answer

Same thing, just use its URL

 svn export http://URL 

It will be exported to your current directory. If you need a different directory, use the following form

 svn export http://URL different_directory 

You can get more information from svn help export

$ svn help export

export: create an unversioned copy of the tree.
Using:
1. export [-r REV] URL [@PEGREV] [PATH]
2. export [-r REV] PATH1 [@PEGREV] [PATH2]

  • Export a clean directory tree from the repository specified in the URL, when revising the REV, if it is specified, otherwise in HEAD, in TRACK. If PATH is omitted, the last component of the URL for the local directory name is used.
  • Export a clean directory tree from a working copy specified in PATH1, when revising a REV, if specified, otherwise at WORK, in PATH2. If PATH2 is omitted, the last component of PATH1 is used for the local directory name. If REV is not specified, all local changes will be saved. Files that are not under version control will not be copied.
+4
source

All Articles