What is the difference between svn import and checkout?

24.7k Views Asked by At

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

3

There are 3 best solutions below

0
On BEST ANSWER

"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.

0
On

Import: Commit an unversioned file or tree into the repository.

Checkout: Check out a working copy from a repository.

0
On

When you use CHECKOUT what you are doing it's donwloading and synctronizing a repository directory in your local machine.

IMPORT you are doing commit/uploading a local path into the repository