How to start an SVN project from the command line?

后端 未结 3 888
悲哀的现实
悲哀的现实 2021-01-30 09:04

So I have a ruby on rails application that I have created on my local computer. I have a remote repository that I\'ve created. Now how do I check it in for the first time? I hav

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 09:42

    You have to create the repository on the server first, then use the svn import command:

    svn import <> -m<>
    

    This will add all of your files to the repository and then commit them in one step.

    Alternatively, you can check out the empty repository (you should have at least /trunk, /tags, and /branches, check out /trunk) and then copy all of your files into the new working copy and add only the files/directories you want to commit. I prefer this method.

提交回复
热议问题