LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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]
copy
Stop tracking several ignored paths
$ jj file untrack [path/to/file1] [path/to/directory]
copy

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
copy
sudo apk add jujutsu
copy
sudo zypper install jujutsu
copy
brew install jujutsu
copy
nix profile install nixpkgs#jujutsu
copy

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

RESOURCES

Copied to clipboard
Kai