PARTIAL ADD

Description

Adds an item to version control.

Usage

cm partial add [-R | -r | --recursive] [--silent] [--parents] [--ignorefailed] [--skipcontentcheck] <item_path>[ ...] [--format=<str-format>] [--errorformat=<str-format>]

Options

Option / ArgumentDescription
-R | -r | --recursiveAdds items recursively.
--silentDoes not show any output.
--parentsIncludes the parent directories of the items specified in the operation.
--ignorefailedIf an item cannot be added, the add operation will continue without it. Note: If a directory cannot be added, its content is not added.
--skipcontentcheckWhen the extension is not enough to set the file as text or binary, it will be set as binary by default instead of checking the content to detect the type.
--formatRetrieves the output message in a specific format. Check the examples for more information.
--errorformatRetrieves the error message (if any) in a specific format. Check the examples for more information.
item_pathItems to add. Use double quotes (" ") to specify paths containing spaces. Use a whitespace to separate paths. Use * to add all the contents of the current directory.

Help

Remarks

Requirements to add items

  • The parent directory of the item to add must be previously added.

Examples

cm partial add pic1.png pic2.png

(Adds 'pic1.png' and 'pic2.png' items.)

cm partial add c:\workspace\picture.png

(Adds 'picture.png' item in path 'c:\workspace'.)

cm partial add -R c:\workspace\src

(Recursively adds 'src'.)

cm partial add --parents samples\design01.png

(Adds 'design01.png' file and 'samples' parent folder.)

cm partial add -R *

(Recursively adds all the contents of the current directory.)

cm partial add -R * --format="ADD {0}" --errorformat="ERR {0}"

(Recursively adds all the contents of the current directory, printing 'ADD <item>' for successfully added files, and 'ERR <item>' for items that could not be added.)