Import into Subversion
February 1, 2009 3:09 PM
Subscribe
How do I import a single file with Subversion?
Sometimes it's convenient to use Subversion without doing a full-blown checkout and creating a .svn file and all that. For example, I can successfully export a single file as follows:
svn export http://blahblah.cvsdude.com/repo/somefile.c
which simply grabs a copy of somefile.c without any fuss. I'd like to do the same, in reverse. I tried
svn import -m "comment" otherfile.c http://blahblah.cvsdude.com/repo
but I get the error
svn: Path 'http://blahblah.cvsdude.com/repo' already exists
which means I'm confused, because my reaction is "Of course it already exists!"
Help please.
posted by iconjack to computers & internet (3 comments total)
2 users marked this as a favorite
svn import -m "comment" otherfile.c http://blahblah.cvsdude.com/repo/otherfile.c
posted by ooga_booga at 3:15 PM on February 1