Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What's the difference between svn checkin and svn import?

It seems both commands can be used to add new entries to the repository, so what's the difference?

share|improve this question

2 Answers 2

Import puts an unversioned file or tree into the repository.

Commit puts changes from your working copy into the repository.

There is no svn checkin.

share|improve this answer

I've always thought it to be that 'add' adds new files within an existing repository and puts them under version control, whereas import adds new files but leaves the local copy outside of version control. Add also requires a working repository, whereas import can be used to "seed" a newly created repo.

Edit... the commit then "checks in" the newly added files (akin to an import, but added to the current working repository). Also handles changes to existing (non added) files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.