Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/git/git/llms.txt

Use this file to discover all available pages before exploring further.

Ancillary manipulator commands are supporting Git commands that help with repository maintenance, configuration, and administrative tasks. These commands complement the main porcelain commands.

git-config

Get and set repository or global options

git-fast-export

Git data exporter

git-fast-import

Backend for fast Git data importers

git-filter-branch

Rewrite branches

git-mergetool

Run merge conflict resolution tools to resolve merge conflicts

git-pack-refs

Pack heads and tags for efficient repository access

git-prune

Prune all unreachable objects from the object database

git-reflog

Manage reflog information

git-refs

Manage reference storage

git-remote

Manage set of tracked repositories

git-repack

Pack unpacked objects in a repository

git-replace

Create, list, delete refs to replace objects

Overview

Ancillary manipulators provide essential maintenance and configuration:
  • Configuration - Repository and user settings management
  • Repository optimization - Packing, pruning, and cleanup
  • Import/Export - Moving repositories between systems
  • Remote management - Configuring remote repositories
  • Reflog - Managing reference logs for recovery

Common Tasks

Configuration

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

Repository Maintenance

git gc                    # Garbage collection
git prune                 # Remove unreachable objects
git repack -a -d          # Repack objects

Remote Management

git remote add origin <url>
git remote -v