I have been using git for 2 years now and love it. However, I am doing some work for a company that insist in using svn so I need to port my git way of doing things to svn.
This is what I have learned so far:
svn co https://the.remote.repo
touch myrepo/trunk/mytest.c
svn add myrepo/trunk/mytest.c
cd myrepo/
svn commit -m "added test file"
which checks out my repo, adds a file, commit it and then pushes it.
I already have a non-svn project (non-git too, it's not under version control yet (awful I know)). How can I turn my existing project into a svn repo ? I can do this:
svn co https://the.remote.repo my_existing_non_svn_directory
which creates a trunk
sub-directory in my_existing_non_svn_directory
. With git
there is no trunk
so this would work but with svn
, do I have to move all my code into the trunk ? Is there some way round this or is it just an svn
thing ?
Many thanks.