简体   繁体   中英

Setting up a local SVN

I'm trying to set up a local svn to version control a really big project. Normally i have only used premade SVNs for school stuff, is it even possible to create a local svn folder that will keep track of changes.

I am using svnadmin create myrepo to create the repository, and then svn import home/dev/svntest file:///home/dev/myrepo to import the file there. However when I run that command a file called svn-commit.tmp is created with the following text in it:

"--This line, and those below, will be ignored--

A    hello.txt:///~myrepo/test1"

What am i doing wrong?

You're missing a commit message for your svn import . Add -m "Initial import of project svntest" to your svn import line.

Follow-up to @Mike

  1. Don't worry about this strange file, just test results of import
  2. Conventional layout of repo tree (/trunk+ /tags +/branches) from the beginning may have some benefits (ie before import perform 3 mkdir and import into file:///home/dev/myrepo/trunk )
  3. You can always see at the repo and control results tree using svn ls -v -R file:///home/dev/myrepo command

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM