Forrest logo
back to the fossil tool

fossil-add:tldr:d22ea

fossil-add: Remove all added files from the current checkout.
$ fossil add --reset
try on your machine

The command "fossil add --reset" is used in the Fossil version control system to add or reset files to the repository. Let's break it down:

  • "fossil" refers to the Fossil version control system executable or command.
  • "add" is the sub-command used to add files or directories to the repository.
  • "--reset" is an optional flag that causes Fossil to reset the target files or directories before adding them.

When you use the "add" sub-command, Fossil looks for any new or changed files in the current directory and its subdirectories. It then adds these files to the repository, making them part of the version control system.

The "--reset" flag is specifically used to reset any changes made to the files before adding them. This means that any local modifications or changes to the files will be discarded, and the files will be added in their original state. It can be helpful when you want to add files without including any local modifications.

In summary, the command "fossil add --reset" adds files to the Fossil repository and discards any changes to those files before adding them.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fossil tool