GIT(1) GIT(1) (NAME) git - ( ) (SYNOPSIS) git [-v | --version] [-h | --help] [-C ] [-c =] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch] [--no-optional-locks] [--no-advice] [--bare] [--git-dir=] [--work-tree=] [--namespace=] [--config-env==] [] (DESCRIPTION) (Git) . gittutorial(7) giteveryday(7) . Git User's Manual[1] . . "git help command" . gitcli(7) . https://git.github.io/htmldocs/git.html https://git-scm.com/docs . (OPTIONS) -v, --version git . git version ... git-version(1) . --help --version . -h, --help . --all -a . . . git- help(1) git --help ... git help ... . -C . -C -C -C . -C "" . --git-dir --work-tree -C . : git --git-dir=a.git --work-tree=b -C c status git --git-dir=c/a.git --work-tree=c/b status -c = . . git config ( ). = git -c foo.bar ... foo.bar true ( [foo]bar ). ( git -c foo.bar= ...) foo.bar git config --type=bool false . --config-env== -c = . -c . . . ( /proc/self/cmdline) ( /proc/self/environ). . http.extraHeader url..insteadOf . --exec-path[=] . GIT_EXEC_PATH . git . --html-path HTML ( ) . --man-path manpath ( man(1)) . --info-path Info . -p, --paginate less ( $PAGER) (pipe) . pager. ( << >> ). -P, --no-pager (pager) . --git-dir= ( ".git") . GIT_DIR . . ".git" ( GIT_DIR) ".git" ( ) . --work-tree= ( GIT_WORK_TREE) . git -C . --work-tree= . . GIT_WORK_TREE core.worktree ( core.worktree git- config(1) ). --namespace= . gitnamespaces(7) . GIT_NAMESPACE . --bare (bare) . GIT_DIR . --no-replace-objects (replacement refs) . GIT_NO_REPLACE_OBJECTS . git-replace(1) . --no-lazy-fetch (promisor remote) . git cat-file -e . GIT_NO_LAZY_FETCH 1 . --no-optional-locks . GIT_OPTIONAL_LOCKS 0 . --no-advice (advice hints) . --literal-pathspecs (pathspecs) ( globbing pathspec). GIT_LITERAL_PATHSPECS 1 . --glob-pathspecs "glob" . GIT_GLOB_PATHSPECS 1 . globbing ":(literal)" . --noglob-pathspecs "literal" . GIT_NOGLOB_PATHSPECS 1 . globbing ":(glob)" . --icase-pathspecs "icase" ( ) . GIT_ICASE_PATHSPECS 1 . --list-cmds=[,...] . / . : builtins parseopt ( parse-options ) deprecated ( ) main ( libexec) others ( $PATH -git ) list- ( command-list.txt ) nohelpers ( ) alias config ( completion.commands). --attr-source= gitattributes . gitattributes(5) . GIT_ATTR_SOURCE . (GIT COMMANDS) ("") ("") . ?Bgit-config?R(1) ?Balias.*?R . "git" ?IPATH?R . () (HIGH-LEVEL COMMANDS (PORCELAIN)) . (Main porcelain commands) ?Bgit-add?R(1) . ?Bgit-am?R(1) (mailbox). ?Bgit-archive?R(1) . ?Bgit-backfill?R(1) . ?Bgit-bisect?R(1) . ?Bgit-branch?R(1) . ?Bgit-bundle?R(1) (). ?Bgit-checkout?R(1) . ?Bgit-cherry-pick?R(1) . ?Bgit-citool?R(1) git-commit. ?Bgit-clean?R(1) . ?Bgit-clone?R(1) . ?Bgit-commit?R(1) . ?Bgit-describe?R(1) . ?Bgit-diff?R(1) . ?Bgit-fetch?R(1) . ?Bgit-format-patch?R(1) . ?Bgit-gc?R(1) . ?Bgit-grep?R(1) . ?Bgit-gui?R(1) . ?Bgit-history?R(1) : . ?Bgit-init?R(1) . ?Bgit-log?R(1) (). ?Bgit-maintenance?R(1) . ?Bgit-merge?R(1) . ?Bgit-mv?R(1) . ?Bgit-notes?R(1) . ?Bgit-pull?R(1) . ?Bgit-push?R(1) . ?Bgit-range-diff?R(1) ( ). ?Bgit-rebase?R(1) . ?Bgit-reset?R(1) ?BHEAD?R . ?Bgit-restore?R(1) . ?Bgit-revert?R(1) . ?Bgit-rm?R(1) . ?Bgit-shortlog?R(1) ?Bgit?R ?Blog?R. ?Bgit-show?R(1) . ?Bgit-sparse-checkout?R(1) . ?Bgit-stash?R(1) . ?Bgit-status?R(1) . ?Bgit-submodule?R(1) . ?Bgit-switch?R(1) . ?Bgit-tag?R(1) . ?Bgit-worktree?R(1) . ?Bgitk?R(1) . (Ancillary Commands) ?Bgit-config?R(1) . ?Bgit-fast-export?R(1) . ?Bgit-fast-import?R(1) . ?Bgit-filter-branch?R(1) . ?Bgit-mergetool?R(1) . ?Bgit-pack-refs?R(1) . ?Bgit-prune?R(1) . ?Bgit-reflog?R(1) (reflog). ?Bgit-refs?R(1) . ?Bgit-remote?R(1) . ?Bgit-repack?R(1) . ?Bgit-replace?R(1) . ?Bgit-annotate?R(1) . ?Bgit-blame?R(1) . ?Bgit-bugreport?R(1) . ?Bgit-count-objects?R(1) . ?Bgit-diagnose?R(1) zip . ?Bgit-difftool?R(1) diff. ?Bgit-fsck?R(1) . ?Bgit-help?R(1) . ?Bgit-instaweb?R(1) gitweb. ?Bgit-merge-tree?R(1) . ?Bgit-rerere?R(1) . ?Bgit-show-branch?R(1) . ?Bgit-verify-commit?R(1) GPG . ?Bgit-verify-tag?R(1) GPG . ?Bgit-version?R(1) . ?Bgit-whatchanged?R(1) . ?Bgitweb?R(1) ( ). (Interacting with Others) ?Bgit-archimport?R(1) GNU Arch . ?Bgit-cvsexportcommit?R(1) CVS. ?Bgit-cvsimport?R(1) . ?Bgit-cvsserver?R(1) CVS . ?Bgit-imap-send?R(1) IMAP. ?Bgit-p4?R(1) Perforce. ?Bgit-quiltimport?R(1) quilt . ?Bgit-request-pull?R(1) . ?Bgit-send-email?R(1) . ?Bgit-svn?R(1) Subversion . (Reset, restore and revert) : ?Bgit?R ?Breset?R ?Bgit?R ?Brestore?R ?Bgit?R ?Brevert?R. o ?Bgit-revert?R(1) . o ?Bgit-restore?R(1) . . . o ?Bgit-reset?R(1) . . ?Bgit?R ?Breset?R ?Bgit?R ?Brestore?R . () (LOW-LEVEL COMMANDS (PLUMBING)) . ?Bgit-update-index?R(1) ?Bgit-read-tree?R(1) . ( ) . . (Manipulation commands) ?Bgit-apply?R(1) / . ?Bgit-checkout-index?R(1) . ?Bgit-commit-graph?R(1) commit-graph . ?Bgit-commit-tree?R(1) . ?Bgit-hash-object?R(1) . ?Bgit-index-pack?R(1) . ?Bgit-merge-file?R(1) . ?Bgit-merge-index?R(1) . ?Bgit-mktag?R(1) . ?Bgit-mktree?R(1) ls-tree. ?Bgit-multi-pack-index?R(1) . ?Bgit-pack-objects?R(1) . ?Bgit-prune-packed?R(1) . ?Bgit-read-tree?R(1) . ?Bgit-replay?R(1) : . ?Bgit-symbolic-ref?R(1) . ?Bgit-unpack-objects?R(1) . ?Bgit-update-index?R(1) . ?Bgit-update-ref?R(1) . ?Bgit-write-tree?R(1) . (Interrogation commands) ?Bgit-cat-file?R(1) . ?Bgit-cherry?R(1) . ?Bgit-diff-files?R(1) . ?Bgit-diff-index?R(1) . ?Bgit-diff-pairs?R(1) blob . ?Bgit-diff-tree?R(1) blob . ?Bgit-for-each-ref?R(1) . ?Bgit-for-each-repo?R(1) . ?Bgit-format-rev?R(1) : . ?Bgit-get-tar-commit-id?R(1) git-archive. ?Bgit-last-modified?R(1) : . ?Bgit-ls-files?R(1) . ?Bgit-ls-remote?R(1) . ?Bgit-ls-tree?R(1) . ?Bgit-merge-base?R(1) . ?Bgit-name-rev?R(1) . ?Bgit-pack-redundant?R(1) . ?Bgit-repo?R(1) . ?Bgit-rev-list?R(1) . ?Bgit-rev-parse?R(1) . ?Bgit-show-index?R(1) . ?Bgit-show-ref?R(1) . ?Bgit-unpack-file?R(1) blob. ?Bgit-var?R(1) . ?Bgit-verify-pack?R(1) . (Syncing repositories) ?Bgit-daemon?R(1) . ?Bgit-fetch-pack?R(1) . ?Bgit-http-backend?R(1) HTTP. ?Bgit-send-pack?R(1) . ?Bgit-update-server-info?R(1) . ?Bgit-http-fetch?R(1) HTTP. ?Bgit-http-push?R(1) HTTP/DAV . ?Bgit-receive-pack?R(1) (push) . ?Bgit-shell?R(1) SSH . ?Bgit-upload-archive?R(1) git-archive. ?Bgit-upload-pack?R(1) git-fetch-pack. (Internal helper commands) ?Bgit-check-attr?R(1) gitattributes. ?Bgit-check-ignore?R(1) gitignore / exclude. ?Bgit-check-mailmap?R(1) . ?Bgit-check-ref-format?R(1) . ?Bgit-column?R(1) . ?Bgit-credential?R(1) ( ) . ?Bgit-credential-cache?R(1) . ?Bgit-credential-store?R(1) . ?Bgit-fmt-merge-msg?R(1) . ?Bgit-hook?R(1) . ?Bgit-interpret-trailers?R(1) . ?Bgit-mailinfo?R(1) . ?Bgit-mailsplit?R(1) mbox . ?Bgit-merge-one-file?R(1) git-merge-index. ?Bgit-patch-id?R(1) . ?Bgit-sh-i18n?R(1) (i18n) . ?Bgit-sh-setup?R(1) . ?Bgit-stripspace?R(1) . ?Bgit-url-parse?R(1) . (GUIDES) . gitcore-tutorial(7) . gitcredentials(7) . gitcvs-migration(7) CVS. gitdiffcore(7) diff. giteveryday(7) . gitfaq(7) . gitglossary(7) . gitnamespaces(7) . gitremote-helpers(7) . gitsubmodules(7) . gittutorial(7) . gittutorial-2(7) : . gitworkflows(7) . (REPOSITORY, COMMAND AND FILE INTERFACES) . --user-formats git-help(1) . gitattributes(5) . gitcli(7) . githooks(5) . gitignore(5) . gitmailmap(5) / /. gitmodules(5) . gitrepository-layout(5) . gitrevisions(7) . (FILE FORMATS, PROTOCOLS AND OTHER DEVELOPER INTERFACES) . --developer-interfaces git-help(1) . gitformat-bundle(5) (bundle). gitformat-chunk(5) (chunk). gitformat-commit-graph(5) commit-graph . gitformat-index(5) . gitformat-pack(5) (pack) . gitformat-signature(5) . gitprotocol-capabilities(5) . gitprotocol-common(5) . gitprotocol-http(5) HTTP . gitprotocol-pack(5) . gitprotocol-v2(5) . (CONFIGURATION MECHANISM) . : # # '#' ';' . # ; [core] ; filemode = false ; [user] name = "Junio C Hamano" email = "gitster@pobox.com" . git-config(1) . (IDENTIFIER TERMINOLOGY) . blob . (tree) . . . (dereference) . . . . : blob tree commit tag. - GIT_INDEX_FILE . (SYMBOLIC IDENTIFIERS) : HEAD . name ( refs/tags/). name ( refs/heads/). "SPECIFYING REVISIONS" gitrevisions(7) . / (FILE/DIRECTORY STRUCTURE) gitrepository-layout(5) . githooks(5) . $GIT_DIR . (TERMINOLOGY) gitglossary(7) . (ENVIRONMENT VARIABLES) . "" (Boolean) "true" "yes" "on" "yes" "false" "no" "off" "0" "no" . : (System) HOME . : $HOMEDRIVE$HOMEPATH $HOMEDRIVE $HOMEPATH $USERPROFILE $USERPROFILE . PATH git ( GIT_EXEC_PATH) git- $PATH . . git foo ( GIT_EXEC_PATH PATH). (The Git Repository) . : . GIT_INDEX_FILE . $GIT_DIR/index . GIT_INDEX_VERSION . . . git-update-index(1) . GIT_OBJECT_DIRECTORY sha1 $GIT_DIR/objects . GIT_ALTERNATE_OBJECT_DIRECTORIES . ":" ( ";") . . " ( ) C . "path-with-\"-and-:-in-it":vanilla-path : path-with-"-and-:-in-it vanilla-path. GIT_DIR GIT_DIR .git . --git-dir . GIT_WORK_TREE . --work-tree core.worktree . GIT_NAMESPACE gitnamespaces(7) . --namespace . GIT_CEILING_DIRECTORIES . ( ). GIT_DIR . . : GIT_CEILING_DIRECTORIES=/maybe/symlink::/very/slow/non/symlink. GIT_DISCOVERY_ACROSS_FILESYSTEM ".git" . true . GIT_CEILING_DIRECTORIES GIT_DIR . GIT_COMMON_DIR $GIT_DIR . HEAD index $GIT_DIR . gitrepository-layout(5) git- worktree(1) . GIT_INDEX_FILE GIT_OBJECT_DIRECTORY . GIT_DEFAULT_HASH . . "sha1" . --object-format git-init(1) . GIT_DEFAULT_REF_FORMAT . "files" . --ref-format git-init(1) . GIT_REFERENCE_BACKEND URI . extensions.refStorage git-config(1) . . (Git Commits) GIT_AUTHOR_NAME reflog . user.name author.name . GIT_AUTHOR_EMAIL reflog. user.email author.email . GIT_AUTHOR_DATE reflog. git-commit(1) . GIT_COMMITTER_NAME reflog . user.name committer.name . GIT_COMMITTER_EMAIL reflog. user.email committer.email . GIT_COMMITTER_DATE reflog. git-commit(1) . EMAIL . (Git Diffs) GIT_DIFF_OPTS "--unified=??" "-u??" diff . "-U" "--unified" git diff . GIT_EXTERNAL_DIFF GIT_EXTERNAL_DIFF diff diff . GIT_EXTERNAL_DIFF : path old-file old-hex old-mode new-file new-hex new-mode : -file GIT_EXTERNAL_DIFF -hex SHA-1 -mode () . ( new-file "git-diff-files") /dev/null ( old-file ) ( old-file ) . GIT_EXTERNAL_DIFF -- GIT_EXTERNAL_DIFF . GIT_EXTERNAL_DIFF . GIT_EXTERNAL_DIFF GIT_DIFF_PATH_COUNTER GIT_DIFF_PATH_TOTAL . GIT_EXTERNAL_DIFF_TRUST_EXIT_CODE true GIT_EXTERNAL_DIFF diff(1). false . . GIT_DIFF_PATH_COUNTER . GIT_DIFF_PATH_TOTAL . (other) GIT_MERGE_VERBOSITY . merge.verbosity . git-merge(1) . GIT_PAGER $PAGER . "cat" . core.pager git-config(1) . GIT_PROGRESS_DELAY . . GIT_EDITOR $EDITOR $VISUAL . . git-var(1) core.editor git-config(1) . GIT_SEQUENCE_EDITOR todo rebase . git-rebase(1) sequence.editor git-config(1) . GIT_SSH, GIT_SSH_COMMAND git fetch git push ssh . ssh . ssh.variant git- config(1) . $GIT_SSH_COMMAND $GIT_SSH . $GIT_SSH ( ). .ssh/config . ssh . GIT_SSH_VARIANT GIT_SSH/GIT_SSH_COMMAND/core.sshCommand OpenSSH plink tortoiseplink . ssh.variant . GIT_SSL_NO_VERIFY HTTPS SSL . GIT_ATTR_SOURCE gitattributes (treeish) . GIT_ASKPASS ( HTTP IMAP) (STDOUT) . core.askPass git-config(1) . GIT_TERMINAL_PROMPT false ( HTTP). GIT_CONFIG_GLOBAL, GIT_CONFIG_SYSTEM . GIT_CONFIG_SYSTEM ( /etc/gitconfig) . GIT_CONFIG_GLOBAL $HOME/.gitconfig $XDG_CONFIG_HOME/git/config . /dev/null . GIT_CONFIG_NOSYSTEM $(prefix)/etc/gitconfig . $HOME $XDG_CONFIG_HOME true /etc/gitconfig . GIT_FLUSH true git blame ( ) git rev-list git log git check-attr git check-ignore ( ) . false / . stdout - . GIT_TRACE . "1" "2" "true" ( ) stderr . . ( / ) . "0" "false" ( ) . GIT_TRACE_FSMONITOR (fsmonitor) . GIT_TRACE . GIT_TRACE_PACK_ACCESS . . . GIT_TRACE . GIT_TRACE_PACKET . . "PACK" ( GIT_TRACE_PACKFILE ). GIT_TRACE . GIT_TRACE_PACKFILE . : . ( GIT_TRACE_PACKFILE=/tmp/my.pack) . . GIT_TRACE_PERFORMANCE . GIT_TRACE . GIT_TRACE_REFS . GIT_TRACE . GIT_TRACE_SETUP git. . GIT_TRACE . GIT_TRACE_SHALLOW / . GIT_TRACE . GIT_TRACE_CURL curl . curl --trace-ascii . GIT_TRACE . GIT_TRACE_CURL_NO_DATA curl ( GIT_TRACE_CURL ) ( ). GIT_TRACE2 "trace2" . GIT_TRACE2 . "1" "2" "true" ( ) stderr . . ( / ) . ( ) SID ( ) . af_unix:[:] . stream dgram . "0" "false" ( ) . Trace2 documentation[2] . GIT_TRACE2_EVENT JSON . GIT_TRACE2 Trace2 documentation[2] . GIT_TRACE2_PERF GIT_TRACE2 . GIT_TRACE2 Trace2 documentation[2] . GIT_TRACE_REDACT "Authorization:" "Proxy-Authorization:" (redact) . false . GIT_NO_REPLACE_OBJECTS . GIT_LITERAL_PATHSPECS true (glob). GIT_LITERAL_PATHSPECS=1 git log -- '*.c' *.c *.c . ( git ls-tree diff --raw ) . GIT_GLOB_PATHSPECS true ( "glob"). GIT_NOGLOB_PATHSPECS true ( "literal"). GIT_ICASE_PATHSPECS true . GIT_NO_LAZY_FETCH true . GIT_REFLOG_ACTION reflog ( ). set_reflog_action git-sh-setup reflog . GIT_REF_PARANOIA false . . ( git-prune(1)) ( ). 1 ( ). 0 . GIT_COMMIT_GRAPH_PARANOIA commit-graph . commit-graph . "false" . "true" commit-graph . GIT_ALLOW_PROTOCOL protocol.allow never always protocol..allow ( ). protocol.allow git-config(1) . GIT_PROTOCOL_FROM_USER false fetch/push/clone user . . git-config(1) . GIT_PROTOCOL . . : [=] . . . ( file:// ) git:// . git-over-http git-http-backend(1) . git-over-ssh ssh ( AcceptEnv GIT_PROTOCOL OpenSSH). . "v0" ( ). (push) ( ). GIT_OPTIONAL_LOCKS false . git status . . 1 . GIT_REDIRECT_STDIN, GIT_REDIRECT_STDOUT, GIT_REDIRECT_STDERR : // . CreateProcess() ( ). ( \\.\pipe\my-git-stdin-123). : off GIT_REDIRECT_STDERR 2>&1 . GIT_PRINT_SHA1_ELLIPSIS () yes () SHA-1 . HEAD (detached) ( git- checkout(1)) diff ( git- diff(1)) . ( ) . GIT_ADVICE 0 . . advice.* . . ( --no-advice . .) (DISCUSSION) Git concepts chapter of the user-manual[3] gitcore-tutorial(7) . ".git" . git. "index" . : blob blob . " " (changeset) "" . . SHA-1 . . . (tag) . " " (pack files) . (refs) . SHA-1 ( " " ). refs/head/ SHA-1 ( "head") . SHA-1 refs/tags/ . HEAD (checkout) . blob . blob . ( ) . . . ( "stages") . . (SECURITY) . git clone git log . .git ( ) .git . . . safe.directory git-config(1) . ( zip tarball ). "" (sanitize) . .git git clone --no-local . upload-pack ( ) upload-pack . ( git-daemon(1) ssh ). SECURITY git-upload-pack(1) . (FURTHER DOCUMENTATION) "" . . Git concepts chapter of the user-manual[3] gitcore-tutorial(7) . gitworkflows(7) . howto[4] . Git API documentation[5] . CVS gitcvs-migration(7) . (AUTHORS) (Linus Torvalds) (Junio C Hamano) . . https://openhub.net/p/git/contributors/summary . git.git git- shortlog(1) git-blame(1) . (REPORTING BUGS) . . https://lore.kernel.org/git . . (SEE ALSO) gittutorial(7), gittutorial-2(7), giteveryday(7), gitcvs-migration(7), gitglossary(7), gitcore-tutorial(7), gitcli(7), The Git User's Manual[1], gitworkflows(7) (GIT) git(1) (NOTES) 1. Git User's Manual file:///usr/share/doc/git-doc/user-manual.html 2. Trace2 documentation file:///usr/share/doc/git-doc/technical/api-trace2.html 3. Git concepts chapter of the user-manual file:///usr/share/doc/git-doc/user-manual.html#git-concepts 4. howto file:///usr/share/doc/git-doc/howto-index.html 5. Git API documentation file:///usr/share/doc/git-doc/technical/api-index.html 6. git@vger.kernel.org mailto:git@vger.kernel.org 7. git-security@googlegroups.com mailto:git-security@googlegroups.com Git 2.55.0 2026-06-29 GIT(1)