LinuxCommandLibrary

fossil-add

stage files for version control

TLDR

Add a file

$ fossil add [file]
copy
Add all new files
$ fossil add .
copy
Add with dry run
$ fossil add --dry-run [file]
copy
Add ignoring binary detection
$ fossil add --dotfiles [file]
copy

SYNOPSIS

fossil add [options] file...

DESCRIPTION

fossil add schedules files to be added to the repository on the next commit. Unlike some version control systems, adding files in Fossil simply marks them for inclusion - they won't appear in the repository until committed.
The command supports glob patterns and can recursively add directories. Dotfiles are ignored by default unless explicitly specified. Binary files are detected automatically and handled appropriately.

PARAMETERS

--dry-run

Show what would be added.
--dotfiles
Include dotfiles.
--ignore
Files to ignore.
-f, --force
Add even if ignored.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community