Domanda

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

È stato utile?

Soluzione

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

Altri suggerimenti

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

Checkout: Check out a working copy from a repository.

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top