Untrack
Stop tracking the given pattern(s) through Git Graph.
The untrack command allows you to specify one or more pattern(s) or literal filenames that Git Graph should stop managing. When provided with pattern arguments, Git Graph removes the corresponding entries from the .gitattributes file. If no patterns are provided, the command will simply list the currently tracked paths, allowing you to audit which files or patterns are currently managed.
Usage
Description
Run the untrack command to remove tracked patterns or filenames from your repository. When you provide pattern arguments, Git Graph updates your repository's .gitattributes file by removing the specified entry(ies). This command is useful when a previously tracked file or path no longer requires special handling by Git Graph. If no arguments are provided, the command outputs a list of all paths that are currently being tracked, allowing you to review your existing tracking configuration.
Similar to the track command, use the --filename flag to treat the argument as a literal filename. This ensures that any special glob characters in the filename are escaped when updating .gitattributes, preserving a literal match rather than a pattern.
Options
-
-d, --dry-run(default: false)When enabled, the command simulates the untracking operations by displaying which entries would be removed from the
.gitattributesfile without making any actual modifications. -
-f, --filename(default: false)Interprets the provided arguments as literal filenames instead of glob patterns. This flag escapes any special glob characters found in the filename, ensuring the exact match is removed from the
.gitattributesfile. -
-h, --helpDisplay help for the command.
Examples
Listing Tracked Patterns
To list all patterns that Git Graph is currently tracking, simply run:
Stopping Tracking for Patterns
To remove JSONL file patterns from Git Graph's tracking (i.e., stop matching all files with the .jsonl extension):
Stopping Tracking for a Specific File
To remove tracking for a specific file (e.g., my_graph.jsonl), using literal matching:
Help
You can display the help for the untrack command by running:
How is this guide?