Grence

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

$ git graph untrack [options] [<pattern>...]

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 .gitattributes file 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 .gitattributes file.

  • -h, --help

    Display help for the command.

Examples

Listing Tracked Patterns

To list all patterns that Git Graph is currently tracking, simply run:

git graph untrack

Stopping Tracking for Patterns

To remove JSONL file patterns from Git Graph's tracking (i.e., stop matching all files with the .jsonl extension):

git graph untrack "*.jsonl"

Stopping Tracking for a Specific File

To remove tracking for a specific file (e.g., my_graph.jsonl), using literal matching:

git graph untrack --filename "my_graph.jsonl"

Help

You can display the help for the untrack command by running:

$ git graph untrack -h
 
Usage: git-graph untrack [options] [<pattern>...]
 
Stop tracking the given pattern(s) through Git Graph. The pattern(s) will be
removed from .gitattributes. If no paths are provided, simply list the
currently-tracked paths.
 
Arguments:
  <pattern>       Pattern(s) to remove from tracking.
 
Options:
  -d, --dry-run   If enabled, show what would be untracked without making any changes (default: false)
 
  -f, --filename  Treat the arguments as literal filenames, not as patterns. Any special glob
                  characters in the filename will be escaped when writing the .gitattributes
                  file. (default: false)
 
  -h, --help      display help for command
 
Examples
--------
 
* List the patterns that Git Graph is currently tracking:
 
  git graph untrack
 
* Configure Git Graph to stop tracking JSONL files:
 
  git graph untrack "*.jsonl"
 
* Configure Git Graph to stop tracking the file named my_graph.jsonl:
 
  git graph untrack --filename "my_graph.jsonl"

How is this guide?

On this page