The synopsis is:
svn import -m "initial commit" <local_path> <url_svn_repository>
After importing data, note that the original tree (<local_path>) is not under version control. To start working, you still need to svn checkout a fresh working copy of the tree.
Examples:
This imports the local directory myproject into trunk/project in your
repository. The directory trunk/project need not exist before you import
into it—svn import will recursively create directories for you.
svn import -m "initial commit" myproject https://mysvnrepo/svn/trunk/project
Adding myproject/file.txt
…
Transmitting file data .........
Committed revision 30.
Be aware that this will not create a directory named module-a in the
repository. If that's what you want, simply add module-a to the end of
the <url_svn_repository>:
svn import -m "initial commit" module-a https://mysvnrepo/svn/trunk/project/module-a
Adding module-a/file2.txt
…
Transmitting file data .........
Committed revision 32.
No comments:
Post a Comment