svnsvn-checkout

What is the difference between svn import and checkout?


I have used GIT for a long time and new to SVN. I couldn't find a which satisfy me the difference between svn import and checkout. Highly appreciate if someone can show me with an example. Thanks


Solution

  • "import" and "checkout" are polar opposites.

    "Import" is to bring something completely outside of version control into SVN.

    Once something is under SVN control, you can "commit" (new modifications), or "checkout" (stuff you've already committed).

    At any time, you can "export" some or all of your project into a "clean directory". The source you've exported is not under version control.

    You "import into" and "export out of" SVN.

    You "commit" and "checkout" stuff that's already under SVN control.