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
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 .
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.
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.
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!
"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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With