Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 203
Gihan Avatar asked May 14 '12 06:05

Gihan


People also ask

What is the difference between svn export and svn checkout?

svn export simply extracts all the files from a revision and does not allow revision control on it. It also does not litter each directory with . svn directories. svn checkout allows you to use version control in the directory made, e.g. your standard commands such as svn update and svn commit .

What does svn import do?

The svn import command is a quick way to copy an unversioned tree of files into a repository, creating intermediate directories as necessary. svn import doesn't require a working copy, and your files are immediately committed to the repository.

What does checkout mean in svn?

The Checkout command is used to copy the files from the SVN repository to the working copy. If we want to access files from the SVN server, then we have to check out it first. The checkout operation creates a working copy of the repository where we can edit, delete, or add contents.

What does Tortoise SVN import do?

As soon as you press OK TortoiseSVN imports the complete directory tree including all files into the repository. The project is now stored in the repository under version control. Please note that the folder you imported is NOT under version control!


1 Answers

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

like image 153
paulsm4 Avatar answered Oct 21 '22 20:10

paulsm4