Make an existing folder into a repository

后端 未结 4 602
眼角桃花
眼角桃花 2021-02-05 08:04

I\'ve decided that modifying files directly in notepad is probably dangerous and it was about time to have some proper source control (I am quite new to source control). I have

4条回答
  •  滥情空心
    2021-02-05 08:50

    You can do what the others above have mentioned, however, if you wish to just use what you have instead of adding and committing, you can simply fool SVNServe.

    For this example our existing repo is "TEST_REPO"

    Go to your command line.

    Create a new directory called "new". CD into it.

    In our "new" directory run the following:

    C:\new\mkdir TEST_REPO
    C:\new\svnadmin create TEST_REPO
    

    Now you will have a repo in the "TEST_REPO" directory.

    Run:

    C:\new\cd TEST_REPO
    C:\new\TEST_REPO\del *.* /S /Q
    

    (rd to remove directories if needed, sorry, not a windows person)

    Now, move the files from your existing "TEST_REPO" into the "C:\new\TEST_REPO\" folder. Then run:

    C:\new\TEST_REPO\svnadmin verify .
    

    You should see SVN verify all of the source in your repository. Easy peasy.

提交回复
热议问题