forget¶
vb rm|delete|forget FILE1 [FILE2 ...]
Description¶
Remove one or more files or directories from the repository.
The rm and delete commands do NOT normally remove the files from disk. They just mark the files as no longer being part of the project. In other words, future changes to the named files will not be versioned. However, the default behavior of this command may be overridden via the command line options listed below and/or the mv-rm-files setting.
The forget command never removes files from disk, even when the command line options and/or the mv-rm-files setting would otherwise require it to do so.
WARNING: If the --hard option is specified -OR- the mv-rm-files
setting is non-zero, files WILL BE removed from disk as well.
This does NOT apply to the forget command.
Options¶
- --hard¶
Remove files from the check-out
- --case-sensitive BOOL¶
Override the case-sensitive setting
- -n, --dry-run¶
If given, display instead of run actions.
Examples¶
Init and open a repository
$ vb init rm_repo.vbyte
project-id: 2eb005a1ce18b06ecc622c2759d7c8643da0135b
server-id: 357dc19f9e7b3113751b50887c5e1255b6f43043
admin-user: ubuntu (initial remote-access password is "cZwuk7U8C6")
$ vb open -f rm_repo.vbyte
project-name: <unnamed>
repository: /tmp/sphinx_tests/2f4344c8/rm_repo/rm_repo.vbyte
local-root: /tmp/sphinx_tests/2f4344c8/rm_repo/
config-db: /tmp/sphinx_tests/2f4344c8/.visionbyte
project-code: 2eb005a1ce18b06ecc622c2759d7c8643da0135b
checkout: 37a9413906d22a0ad20f9643e88d06cd9269abe7 2026-04-07 06:51:22 UTC
tags: trunk
comment: initial empty check-in (user: ubuntu)
check-ins: 1
Add and commit a file
$ vb system echo "config" > config.tmp
$ vb add config.tmp
ADDED config.tmp
$ vb ci -m "Add config"
Committed version: 45843b266a7bc17f2c140b95853a04a14b3b77e92bcb989a3d8f12d9914bf01c
Remove the file from version control
$ vb rm config.tmp
DELETED config.tmp
Show changes (DELETED) and commit
$ vb changes
DELETED config.tmp
$ vb ci -m "Remove config"
Committed version: 868db1f0dc96ddfa0bb787f7891f215d3bfb285940cf3e3e6068ea39ffb6c686