On 5/5/05, Hughes, Trystan <Trystan.Hughes@assetco.com> wrote:
>
> I all,
>
> I am relatively new to Subversion, and have been handed the task of rolling it out across the business I work in - so expect quite a few questions over the next couple of weeks :).
>
> Anyway, can someone please explain the exact differences between the 'Add' and 'Import' commands, please? At the moment, if I want to add a new folder/file to my repository, then I use the 'Add' command. Is this correct? If so, where does the 'Import' command come into it?
>
Add is used to add to your working copy and schedule them for addition
to the repository. Import is used to directly commit a unversioned
directory to a repository, ususally done when first importing a new
project into subversion.
This is explained much better in the subversion book:
http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-3-sect-2
http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-9-sect-1.2-re-add
http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-9-sect-1.2-re-import
/Johan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 5 11:02:04 2005