Warning
The product is in closed beta and not open to the public.
addremove¶
vb addremove [OPTIONS]
Description¶
Do all necessary add and rm commands to synchronize the repository with the content of the working check-out:
All files in the check-out but not in the repository (that is,
all files displayed using the "extras" command) are added as
if by the "add" command.
All files in the repository but missing from the check-out (that is,
all files that show as MISSING with the "status" command) are
removed as if by the "rm" command.
Note that this command does not commit, as that is a separate step.
Files and directories whose names begin with . are ignored unless
the --dotfiles option is used.
The --ignore option overrides the ignore-glob setting, as do the
--case-sensitive option with the case-sensitive setting and the
--clean option with the clean-glob setting. See the documentation
on the settings command for further information.
The -n|--dry-run option shows what would happen without actually doing
anything.
This command can be used to track third party software.
Options¶
- --case-sensitive BOOL¶
Override the case-sensitive setting
- --dotfiles¶
Include files beginning with a dot (
.)
- --ignore CSG¶
Ignore unmanaged files matching patterns from the Comma Separated Glob (CSG) list
- --clean CSG¶
Also ignore files matching patterns from the Comma Separated Glob (CSG) list
- -n, --dry-run¶
If given, display instead of run actions
- --lock¶
Lock all affected files before synchronizing them
- --unlock¶
Unlock all affected files after synchronizing them. Cannot be used with –lock.
Examples¶
Init and open a repository
$ vb init addremove_repo.vbyte
project-id: 21cf833e442d1b22dd2d5818101a7341d93f3e20
server-id: ea135298a7c149abad1b19e95e2bd2a1bc36f678
admin-user: frankli (initial remote-access password is "jxoCRv84aH")
$ vb open -f addremove_repo.vbyte
project-name: <unnamed>
repository: <EXAMPLE>/addremove_repo/addremove_repo.vbyte
local-root: <EXAMPLE>/addremove_repo/
config-db: <EXAMPLE>/SOFTBRIDGE/__vbglobal__
project-code: 21cf833e442d1b22dd2d5818101a7341d93f3e20
checkout: 6b293c658ac10eb7a97336a57453138ea537d577 2026-11-19 02:30:40 UTC
tags: trunk
comment: initial empty check-in (user: frankli)
check-ins: 1
Adds all newly created files in the working directory and removes all files that have been deleted from it (excluding those explicitly configured to be ignored or exempt from add/remove operations).
$ vb sys touch test1.txt
$ vb sys touch test2.txt
$ vb sys touch test3.txt
$ vb sys touch test4.txt
$ vb add test1.txt test2.txt test3.txt test4.txt
ADDED test1.txt
ADDED test2.txt
ADDED test3.txt
ADDED test4.txt
$ vb ci -m "Adding all files"
Committed version: 89a2cb1950b40771335e0989c68188f08a70327accb397c9b9fd1896be60cbc6
$ vb sys rm test1.txt test2.txt test3.txt test4.txt
$ vb sys mkdir dir1
$ vb sys touch dir1/test5.txt
$ vb sys touch dir1/test6.txt
$ vb sys touch dir1/test7.txt
$ vb addremove
ADDED dir1/test5.txt
ADDED dir1/test6.txt
ADDED dir1/test7.txt
DELETED test1.txt
DELETED test2.txt
DELETED test3.txt
DELETED test4.txt
added 3 files, deleted 4 files
Reverts all previously added or removed files.
$ vb addremove --reset
Un-removed 4 file(s).
Un-added 3 file(s).