jj-file-untrack
stops tracking specified paths in the Jujutsu working copy
TLDR
Stop tracking an ignored file or directory
$ jj file untrack [path/to/file]
Stop tracking several ignored paths$ jj file untrack [path/to/file1] [path/to/directory]
SYNOPSIS
jj file untrack filesets...
DESCRIPTION
jj file untrack stops tracking specified paths in the working copy. The files remain on disk, but they are no longer snapshotted into the working-copy commit.This is the usual way to drop a previously tracked file from the current change while keeping it locally — Git's `git rm --cached`. The path must already match an ignore rule; otherwise the next snapshot would pick it up again. Add a .gitignore (or .git/info/exclude) pattern first, then untrack.
PARAMETERS
FILESETS
Paths to stop tracking. Required. Each path must already be ignored (for example by .gitignore or, in a colocated workspace, .git/info/exclude).
INSTALL
sudo pacman -S jujutsu
sudo apk add jujutsu
sudo zypper install jujutsu
brew install jujutsu
nix profile install nixpkgs#jujutsu
CAVEATS
Subcommand of jj. At least one fileset is required. Untracking fails if the path is not already ignored. Not the same as jj bookmark untrack.
SEE ALSO
jj-file(1), jj-file-track(1), jj-file-list(1), git-rm(1), jj(1)
