---
name: git-cli-docs
description: High-level reference for the Git command-line interface.
source_url: https://git-scm.com/docs/git
categories: [Documentation, Knowledge Base, Reference]
tags: [docs, reference, git-cli-docs, knowledge-base]
---

# Git Cli Docs Documentation

High-level reference for the Git command-line interface.

**Original Source**: [https://git-scm.com/docs/git](https://git-scm.com/docs/git)

**Contains**: 284 markdown files with full folder structure.
*Last updated: February 27, 2026*

## 📚 Table of Contents

- [About Git](reference/about.md)
- [About Trademark](reference/about_trademark.md)
- [Api Index](reference/api-index.md)
- [Api Trace2](reference/api-trace2.md)
- [Book](reference/book.md)
- [Git Cheat Sheet](reference/cheat-sheet.md)
- [Community](reference/community.md)
- [Git credential helpers](reference/doc_credential-helpers.md)
- [External Links](reference/doc_ext.md)
- [Reference](reference/docs.md)
- [Git Add](reference/git-add.md)
- [Git Am](reference/git-am.md)
- [Git Annotate](reference/git-annotate.md)
- [Git Apply](reference/git-apply.md)
- [Git Archimport](reference/git-archimport.md)
- [Git Archive](reference/git-archive.md)
- [Git Backfill](reference/git-backfill.md)
- [Git Bisect](reference/git-bisect.md)
- [Git Blame](reference/git-blame.md)
- [Git Branch](reference/git-branch.md)
- [Git Bugreport](reference/git-bugreport.md)
- [Git Bundle](reference/git-bundle.md)
- [Git Cat File](reference/git-cat-file.md)
- [Git Check Attr](reference/git-check-attr.md)
- [Git Check Ignore](reference/git-check-ignore.md)
- [Git Check Mailmap](reference/git-check-mailmap.md)
- [Git Check Ref Format](reference/git-check-ref-format.md)
- [Git Checkout Index](reference/git-checkout-index.md)
- [Git Checkout](reference/git-checkout.md)
- [Git Cherry Pick](reference/git-cherry-pick.md)
- [Git Cherry](reference/git-cherry.md)
- [Git Citool](reference/git-citool.md)
- [Git Clean](reference/git-clean.md)
- [Git Clone](reference/git-clone.md)
- [Git Column](reference/git-column.md)
- [Git Commit Graph](reference/git-commit-graph.md)
- [Git Commit Tree](reference/git-commit-tree.md)
- [Git Commit](reference/git-commit.md)
- [Git Config](reference/git-config.md)
- [Git Count Objects](reference/git-count-objects.md)
- [Git Credential Cache](reference/git-credential-cache.md)
- [Git Credential Store](reference/git-credential-store.md)
- [Git Credential](reference/git-credential.md)
- [Git Cvsexportcommit](reference/git-cvsexportcommit.md)
- [Git Cvsimport](reference/git-cvsimport.md)
- [Git Cvsserver](reference/git-cvsserver.md)
- [Git Daemon](reference/git-daemon.md)
- [Git Describe](reference/git-describe.md)
- [Git Diagnose](reference/git-diagnose.md)
- [Git Diff Files](reference/git-diff-files.md)
- [Git Diff Index](reference/git-diff-index.md)
- [Git Diff Pairs](reference/git-diff-pairs.md)
- [Git Diff Tree](reference/git-diff-tree.md)
- [Git Diff](reference/git-diff.md)
- [Git Difftool](reference/git-difftool.md)
- [Git Fast Export](reference/git-fast-export.md)
- [Git Fast Import](reference/git-fast-import.md)
- [Git Fetch Pack](reference/git-fetch-pack.md)
- [Git Fetch](reference/git-fetch.md)
- [Git Filter Branch](reference/git-filter-branch.md)
- [Git Fmt Merge Msg](reference/git-fmt-merge-msg.md)
- [Git For Each Ref](reference/git-for-each-ref.md)
- [Git For Each Repo](reference/git-for-each-repo.md)
- [Git Format Patch](reference/git-format-patch.md)
- [Git Fsck](reference/git-fsck.md)
- [Git Gc](reference/git-gc.md)
- [Git Get Tar Commit Id](reference/git-get-tar-commit-id.md)
- [Git Grep](reference/git-grep.md)
- [Git Gui](reference/git-gui.md)
- [Git Hash Object](reference/git-hash-object.md)
- [Git Help](reference/git-help.md)
- [Git Hook](reference/git-hook.md)
- [Git Http Backend](reference/git-http-backend.md)
- [Git Http Fetch](reference/git-http-fetch.md)
- [Git Http Push](reference/git-http-push.md)
- [Git Imap Send](reference/git-imap-send.md)
- [Git Index Pack](reference/git-index-pack.md)
- [Git Init](reference/git-init.md)
- [Git Instaweb](reference/git-instaweb.md)
- [Git Interpret Trailers](reference/git-interpret-trailers.md)
- [Git Last Modified](reference/git-last-modified.md)
- [Git Log](reference/git-log.md)
- [Git Ls Files](reference/git-ls-files.md)
- [Git Ls Remote](reference/git-ls-remote.md)
- [Git Ls Tree](reference/git-ls-tree.md)
- [Git Mailinfo](reference/git-mailinfo.md)
- [Git Mailsplit](reference/git-mailsplit.md)
- [Git Maintenance](reference/git-maintenance.md)
- [Git Merge Base](reference/git-merge-base.md)
- [Git Merge File](reference/git-merge-file.md)
- [Git Merge Index](reference/git-merge-index.md)
- [Git Merge One File](reference/git-merge-one-file.md)
- [Git Merge Tree](reference/git-merge-tree.md)
- [Git Merge](reference/git-merge.md)
- [Git Mergetool](reference/git-mergetool.md)
- [Git Mktag](reference/git-mktag.md)
- [Git Mktree](reference/git-mktree.md)
- [Git Multi Pack Index](reference/git-multi-pack-index.md)
- [Git Mv](reference/git-mv.md)
- [Git Name Rev](reference/git-name-rev.md)
- [Git Notes](reference/git-notes.md)
- [Git P4](reference/git-p4.md)
- [Git Pack Objects](reference/git-pack-objects.md)
- [Git Pack Redundant](reference/git-pack-redundant.md)
- [Git Pack Refs](reference/git-pack-refs.md)
- [Git Patch Id](reference/git-patch-id.md)
- [Git Prune Packed](reference/git-prune-packed.md)
- [Git Prune](reference/git-prune.md)
- [Git Pull](reference/git-pull.md)
- [Git Push](reference/git-push.md)
- [Git Quiltimport](reference/git-quiltimport.md)
- [Git Range Diff](reference/git-range-diff.md)
- [Git Read Tree](reference/git-read-tree.md)
- [Git Rebase](reference/git-rebase.md)
- [Git Receive Pack](reference/git-receive-pack.md)
- [Git Reflog](reference/git-reflog.md)
- [Git Refs](reference/git-refs.md)
- [Git Remote](reference/git-remote.md)
- [Git Repack](reference/git-repack.md)
- [Git Replace](reference/git-replace.md)
- [Git Replay](reference/git-replay.md)
- [Git Repo](reference/git-repo.md)
- [Git Request Pull](reference/git-request-pull.md)
- [Git Rerere](reference/git-rerere.md)
- [Git Reset](reference/git-reset.md)
- [Git Restore](reference/git-restore.md)
- [Git Rev List](reference/git-rev-list.md)
- [Git Rev Parse](reference/git-rev-parse.md)
- [Git Revert](reference/git-revert.md)
- [Git Rm](reference/git-rm.md)
- [Git Send Email](reference/git-send-email.md)
- [Git Send Pack](reference/git-send-pack.md)
- [Git Sh I18N](reference/git-sh-i18n.md)
- [Git Sh Setup](reference/git-sh-setup.md)
- [Git Shell](reference/git-shell.md)
- [Git Shortlog](reference/git-shortlog.md)
- [Git Show Branch](reference/git-show-branch.md)
- [Git Show Index](reference/git-show-index.md)
- [Git Show Ref](reference/git-show-ref.md)
- [Git Show](reference/git-show.md)
- [Git Sparse Checkout](reference/git-sparse-checkout.md)
- [Git Stash](reference/git-stash.md)
- [Git Status](reference/git-status.md)
- [Git Stripspace](reference/git-stripspace.md)
- [Git Submodule](reference/git-submodule.md)
- [Git Svn](reference/git-svn.md)
- [Git Switch](reference/git-switch.md)
- [Git Symbolic Ref](reference/git-symbolic-ref.md)
- [Git Tag](reference/git-tag.md)
- [Git Unpack File](reference/git-unpack-file.md)
- [Git Unpack Objects](reference/git-unpack-objects.md)
- [Git Update Index](reference/git-update-index.md)
- [Git Update Ref](reference/git-update-ref.md)
- [Git Update Server Info](reference/git-update-server-info.md)
- [Git Upload Archive](reference/git-upload-archive.md)
- [Git Upload Pack](reference/git-upload-pack.md)
- [Git Var](reference/git-var.md)
- [Git Verify Commit](reference/git-verify-commit.md)
- [Git Verify Pack](reference/git-verify-pack.md)
- [Git Verify Tag](reference/git-verify-tag.md)
- [Git Version](reference/git-version.md)
- [Git Whatchanged](reference/git-whatchanged.md)
- [Git Worktree](reference/git-worktree.md)
- [Git Write Tree](reference/git-write-tree.md)
- [Git](reference/git.md)
- [Git 2.0.5](reference/git_2.0.5.md)
- [Git 2.1.4](reference/git_2.1.4.md)
- [Git 2.10.5](reference/git_2.10.5.md)
- [Git 2.11.4](reference/git_2.11.4.md)
- [Git 2.12.5](reference/git_2.12.5.md)
- [Git 2.14.6](reference/git_2.14.6.md)
- [Git 2.15.4](reference/git_2.15.4.md)
- [Git 2.16.6](reference/git_2.16.6.md)
- [Git 2.17.0](reference/git_2.17.0.md)
- [Git 2.18.0](reference/git_2.18.0.md)
- [Git 2.19.0](reference/git_2.19.0.md)
- [Git 2.19.2](reference/git_2.19.2.md)
- [Git 2.2.3](reference/git_2.2.3.md)
- [Git 2.20.0](reference/git_2.20.0.md)
- [Git 2.22.0](reference/git_2.22.0.md)
- [Git 2.22.1](reference/git_2.22.1.md)
- [Git 2.23.0](reference/git_2.23.0.md)
- [Git 2.25.0](reference/git_2.25.0.md)
- [Git 2.25.1](reference/git_2.25.1.md)
- [Git 2.26.0](reference/git_2.26.0.md)
- [Git 2.27.0](reference/git_2.27.0.md)
- [Git 2.28.0](reference/git_2.28.0.md)
- [Git 2.29.0](reference/git_2.29.0.md)
- [Git 2.3.10](reference/git_2.3.10.md)
- [Git 2.30.0](reference/git_2.30.0.md)
- [Git 2.31.0](reference/git_2.31.0.md)
- [Git 2.32.0](reference/git_2.32.0.md)
- [Git 2.33.1](reference/git_2.33.1.md)
- [Git 2.33.2](reference/git_2.33.2.md)
- [Git 2.34.0](reference/git_2.34.0.md)
- [Git 2.35.0](reference/git_2.35.0.md)
- [Git 2.36.0](reference/git_2.36.0.md)
- [Git 2.37.0](reference/git_2.37.0.md)
- [Git 2.37.2](reference/git_2.37.2.md)
- [Git 2.38.0](reference/git_2.38.0.md)
- [Git 2.38.2](reference/git_2.38.2.md)
- [Git 2.39.0](reference/git_2.39.0.md)
- [Git 2.39.4](reference/git_2.39.4.md)
- [Git 2.4.12](reference/git_2.4.12.md)
- [Git 2.40.2](reference/git_2.40.2.md)
- [Git 2.41.0](reference/git_2.41.0.md)
- [Git 2.41.1](reference/git_2.41.1.md)
- [Git 2.42.0](reference/git_2.42.0.md)
- [Git 2.42.1](reference/git_2.42.1.md)
- [Git 2.42.2](reference/git_2.42.2.md)
- [Git 2.43.0](reference/git_2.43.0.md)
- [Git 2.43.1](reference/git_2.43.1.md)
- [Git 2.43.4](reference/git_2.43.4.md)
- [Git 2.44.0](reference/git_2.44.0.md)
- [Git 2.44.1](reference/git_2.44.1.md)
- [Git 2.45.0](reference/git_2.45.0.md)
- [Git 2.45.1](reference/git_2.45.1.md)
- [Git 2.46.0](reference/git_2.46.0.md)
- [Git 2.47.0](reference/git_2.47.0.md)
- [Git 2.48.0](reference/git_2.48.0.md)
- [Git 2.49.0](reference/git_2.49.0.md)
- [Git 2.5.6](reference/git_2.5.6.md)
- [Git 2.50.0](reference/git_2.50.0.md)
- [Git 2.51.1](reference/git_2.51.1.md)
- [Git 2.52.0](reference/git_2.52.0.md)
- [Git 2.53.0](reference/git_2.53.0.md)
- [Git 2.6.7](reference/git_2.6.7.md)
- [Git 2.7.6](reference/git_2.7.6.md)
- [Git 2.8.6](reference/git_2.8.6.md)
- [Git 2.9.5](reference/git_2.9.5.md)
- [Git De](reference/git_de.md)
- [Git Es](reference/git_es.md)
- [Git Fr](reference/git_fr.md)
- [Git Pt Br](reference/git_pt_BR.md)
- [Git Sv](reference/git_sv.md)
- [Git Uk](reference/git_uk.md)
- [Git Zh Hans Cn](reference/git_zh_HANS-CN.md)
- [Gitattributes](reference/gitattributes.md)
- [Gitcli](reference/gitcli.md)
- [Gitcore Tutorial](reference/gitcore-tutorial.md)
- [Gitcredentials](reference/gitcredentials.md)
- [Gitcvs Migration](reference/gitcvs-migration.md)
- [Gitdiffcore](reference/gitdiffcore.md)
- [Giteveryday](reference/giteveryday.md)
- [Gitfaq](reference/gitfaq.md)
- [Gitformat Bundle](reference/gitformat-bundle.md)
- [Gitformat Chunk](reference/gitformat-chunk.md)
- [Gitformat Commit Graph](reference/gitformat-commit-graph.md)
- [Gitformat Index](reference/gitformat-index.md)
- [Gitformat Pack](reference/gitformat-pack.md)
- [Gitformat Signature](reference/gitformat-signature.md)
- [Gitglossary](reference/gitglossary.md)
- [Githooks](reference/githooks.md)
- [Gitignore](reference/gitignore.md)
- [Gitk](reference/gitk.md)
- [Gitmailmap](reference/gitmailmap.md)
- [Gitmodules](reference/gitmodules.md)
- [Gitnamespaces](reference/gitnamespaces.md)
- [Gitprotocol Capabilities](reference/gitprotocol-capabilities.md)
- [Gitprotocol Common](reference/gitprotocol-common.md)
- [Gitprotocol Http](reference/gitprotocol-http.md)
- [Gitprotocol Pack](reference/gitprotocol-pack.md)
- [Gitprotocol V2](reference/gitprotocol-v2.md)
- [Gitremote Helpers](reference/gitremote-helpers.md)
- [Gitrepository Layout](reference/gitrepository-layout.md)
- [Gitrevisions](reference/gitrevisions.md)
- [Gitsubmodules](reference/gitsubmodules.md)
- [Gittutorial 2](reference/gittutorial-2.md)
- [Gittutorial](reference/gittutorial.md)
- [Gitweb](reference/gitweb.md)
- [Gitworkflows](reference/gitworkflows.md)
- [Howto Index](reference/howto-index.md)
- [Index](reference/index.md)
- [Install](reference/install_linux.md)
- [Learn](reference/learn.md)
- [Scalar](reference/scalar.md)
- [Git and Software Freedom Conservancy](reference/sfc.md)
- [About git-scm.com](reference/site.md)
- [Tools](reference/tools.md)
- [Command Line Tools](reference/tools_command-line.md)
- [GUI Clients](reference/tools_guis.md)
- [Git Hosting](reference/tools_hosting.md)
- [User Manual](reference/user-manual.md)
- [Videos](reference/videos.md)

## 🤖 Agent Usage Guide

- When the user asks anything about **Git Cli Docs**, consult the reference files.
- Prefer exact quotes and direct links to the relevant file/section.
- The hierarchical TOC above makes navigation fast and intuitive.
- All images and assets are preserved so links work perfectly.
