| title | remove |
|---|
Remove files from tracking.
atomic remove [OPTIONS] <PATHS>...The remove command stops tracking files in the repository. By default the files are left on disk as untracked files; pass --delete to also delete them from the working copy.
Files or directories to remove from tracking.
atomic remove obsolete.txtAlso delete files from disk. Without this flag, files are only removed from tracking and remain on disk as untracked files.
# Stop tracking and delete from disk
atomic remove --delete old-file.txt
# Stop tracking but keep the file on disk
atomic remove old-file.txtRecursively remove directory contents.
atomic remove --recursive old-code/Don't recursively remove directory contents.
atomic remove --no-recursive old-code/Dry run - show what would be removed without doing it.
atomic remove --dry-run old-code/Force remove even if the file is not tracked.
atomic remove --force stray-file.txtThese options are available on all commands:
-v, --verbose- Emit extra diagnostic output--no-color- Disable ANSI color in output-h, --help- Print help-V, --version- Print version
# Stop tracking but keep the file on disk
atomic remove .env
echo ".env" >> .ignore
atomic record -m "Stop tracking .env"# Stop tracking and delete from disk
atomic remove --delete obsolete.txt
atomic record -m "Remove obsolete file"# Remove all tracked files in a directory
atomic remove --recursive old-code/
atomic record -m "Remove old code"# See what would be removed without making changes
atomic remove --dry-run old-code/atomic add- Add files to trackingatomic move- Move or rename filesatomic record- Record changesatomic status- Show the status of the working copy