The [add] Command
Add file contents to the index
Usage
libra add [OPTIONS] [PATHSPEC]...
Arguments
[PATHSPEC]...
- Files & dirs to add content from
Description
This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
Options
-
-A
,--all
Update the index not only where the working tree has a file matching pathspec but also where the index already has an entry. This adds, modifies, and removes index entries to match the working tree.If no pathspec is given when
-A
option is used, all files in the entire working tree are updated -
-u
,--update
Update the index just where it already has an entry matching pathspec. This removes as well as modifies index entries to match the working tree, but adds no new files -
-v
,--verbose
more detailed output