Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fossil dvcs difference between update and checkout commands

Tags:

dvcs

fossil

After reading the builtin help, it seems to me that both commads can be used for modifying the workspace to match a certain revision. But I don't understand the differences between update and checkout. Please include some trivial workflows in your answer which show when update/checkout are appropriate.

like image 685
vinnie_the_me Avatar asked Dec 07 '10 12:12

vinnie_the_me


1 Answers

First major difference is that if you have a remote url set, update will pull first latest artifacts from the remote repository.

Another difference is that if you have uncomitted changes, checkout will not run (unless you force it), whereas update will retain your changes and reapply them. With update you can therefore integrate changes from other users before committing.

So:

  • Update is what you need when you collaborate on a project, in order to prevent forks.
  • Checkout lets you deploy a particular version.
like image 97
Benoit Avatar answered Oct 20 '22 16:10

Benoit