APPLYLOCAL
Apply local changes with the Unity Version Control CLI.
阅读时间1 分钟最后更新于 10 个月前
Description
Checks for local changes (locally moved, locally deleted, and locally changed) and applies them, so that UVCS starts tracking those changes.
Usage
cm applylocal | al [--dependencies] [<item_path>[ ...]] [--machinereadable [--startlineseparator=<sep>] [--endlineseparator=<sep>] [--fieldseparator=<sep>]]
Options
Option / Argument | Description |
|---|---|
| Adds local change dependencies into the items to apply. |
| Items to be applied. Use a whitespace to separate paths. Use double quotes ( |
| Outputs the result in an easy-to-parse format. |
| Used with the |
| Used with the |
| Used with the |
Help
Remarks
- If and
--dependenciesare not specified, the operation involves all the local changes in the workspace.<item_path> - It is always applied recursively from the given path.
Examples
cm applylocal foo.c bar.c
cm applylocal .
(Applies all local changes in the current directory.)
cm applylocal
(Applies all local changes in the workspace.)
cm applylocal --machinereadable
(Applies all local changes in the workspace, and prints the result in a simplified, easier-to-parse format.)
cm applylocal --machinereadable --startlineseparator=">"
--endlineseparator="<" --fieldseparator=","
(Applies all local changes in the workspace, and prints the result in a simplified, easier-to-parse format, starting and ending the lines and separating the fields with the specified strings.)