Experimenting with making pretty man pages on paper.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1841 lines
51 KiB

3 years ago
  1. '\" t
  2. .\" Title: git
  3. .\" Author: [see the "Authors" section]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: 03/04/2021
  6. .\" Manual: Git Manual
  7. .\" Source: Git 2.25.1
  8. .\" Language: English
  9. .\"
  10. .TH "GIT" "1" "03/04/2021" "Git 2\&.25\&.1" "Git Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git \- the stupid content tracker
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fIgit\fR [\-\-version] [\-\-help] [\-C <path>] [\-c <name>=<value>]
  36. [\-\-exec\-path[=<path>]] [\-\-html\-path] [\-\-man\-path] [\-\-info\-path]
  37. [\-p|\-\-paginate|\-P|\-\-no\-pager] [\-\-no\-replace\-objects] [\-\-bare]
  38. [\-\-git\-dir=<path>] [\-\-work\-tree=<path>] [\-\-namespace=<name>]
  39. [\-\-super\-prefix=<path>]
  40. <command> [<args>]
  41. .fi
  42. .sp
  43. .SH "DESCRIPTION"
  44. .sp
  45. Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high\-level operations and full access to internals\&.
  46. .sp
  47. See \fBgittutorial\fR(7) to get started, then see \fBgiteveryday\fR(7) for a useful minimum set of commands\&. The \m[blue]\fBGit User\(cqs Manual\fR\m[]\&\s-2\u[1]\d\s+2 has a more in\-depth introduction\&.
  48. .sp
  49. After you mastered the basic concepts, you can come back to this page to learn what commands Git offers\&. You can learn more about individual Git commands with "git help command"\&. \fBgitcli\fR(7) manual page gives you an overview of the command\-line command syntax\&.
  50. .sp
  51. A formatted and hyperlinked copy of the latest Git documentation can be viewed at \m[blue]\fBhttps://git\&.github\&.io/htmldocs/git\&.html\fR\m[] or \m[blue]\fBhttps://git\-scm\&.com/docs\fR\m[]\&.
  52. .SH "OPTIONS"
  53. .PP
  54. \-\-version
  55. .RS 4
  56. Prints the Git suite version that the
  57. \fIgit\fR
  58. program came from\&.
  59. .RE
  60. .PP
  61. \-\-help
  62. .RS 4
  63. Prints the synopsis and a list of the most commonly used commands\&. If the option
  64. \fB\-\-all\fR
  65. or
  66. \fB\-a\fR
  67. is given then all available commands are printed\&. If a Git command is named this option will bring up the manual page for that command\&.
  68. .sp
  69. Other options are available to control how the manual page is displayed\&. See
  70. \fBgit-help\fR(1)
  71. for more information, because
  72. \fBgit \-\-help \&.\&.\&.\fR
  73. is converted internally into
  74. \fBgit help \&.\&.\&.\fR\&.
  75. .RE
  76. .PP
  77. \-C <path>
  78. .RS 4
  79. Run as if git was started in
  80. \fI<path>\fR
  81. instead of the current working directory\&. When multiple
  82. \fB\-C\fR
  83. options are given, each subsequent non\-absolute
  84. \fB\-C <path>\fR
  85. is interpreted relative to the preceding
  86. \fB\-C <path>\fR\&. If
  87. \fI<path>\fR
  88. is present but empty, e\&.g\&.
  89. \fB\-C ""\fR, then the current working directory is left unchanged\&.
  90. .sp
  91. This option affects options that expect path name like
  92. \fB\-\-git\-dir\fR
  93. and
  94. \fB\-\-work\-tree\fR
  95. in that their interpretations of the path names would be made relative to the working directory caused by the
  96. \fB\-C\fR
  97. option\&. For example the following invocations are equivalent:
  98. .sp
  99. .if n \{\
  100. .RS 4
  101. .\}
  102. .nf
  103. git \-\-git\-dir=a\&.git \-\-work\-tree=b \-C c status
  104. git \-\-git\-dir=c/a\&.git \-\-work\-tree=c/b status
  105. .fi
  106. .if n \{\
  107. .RE
  108. .\}
  109. .RE
  110. .PP
  111. \-c <name>=<value>
  112. .RS 4
  113. Pass a configuration parameter to the command\&. The value given will override values from configuration files\&. The <name> is expected in the same format as listed by
  114. \fIgit config\fR
  115. (subkeys separated by dots)\&.
  116. .sp
  117. Note that omitting the
  118. \fB=\fR
  119. in
  120. \fBgit \-c foo\&.bar \&.\&.\&.\fR
  121. is allowed and sets
  122. \fBfoo\&.bar\fR
  123. to the boolean true value (just like
  124. \fB[foo]bar\fR
  125. would in a config file)\&. Including the equals but with an empty value (like
  126. \fBgit \-c foo\&.bar= \&.\&.\&.\fR) sets
  127. \fBfoo\&.bar\fR
  128. to the empty string which
  129. \fBgit config \-\-type=bool\fR
  130. will convert to
  131. \fBfalse\fR\&.
  132. .RE
  133. .PP
  134. \-\-exec\-path[=<path>]
  135. .RS 4
  136. Path to wherever your core Git programs are installed\&. This can also be controlled by setting the GIT_EXEC_PATH environment variable\&. If no path is given,
  137. \fIgit\fR
  138. will print the current setting and then exit\&.
  139. .RE
  140. .PP
  141. \-\-html\-path
  142. .RS 4
  143. Print the path, without trailing slash, where Git\(cqs HTML documentation is installed and exit\&.
  144. .RE
  145. .PP
  146. \-\-man\-path
  147. .RS 4
  148. Print the manpath (see
  149. \fBman(1)\fR) for the man pages for this version of Git and exit\&.
  150. .RE
  151. .PP
  152. \-\-info\-path
  153. .RS 4
  154. Print the path where the Info files documenting this version of Git are installed and exit\&.
  155. .RE
  156. .PP
  157. \-p, \-\-paginate
  158. .RS 4
  159. Pipe all output into
  160. \fIless\fR
  161. (or if set, $PAGER) if standard output is a terminal\&. This overrides the
  162. \fBpager\&.<cmd>\fR
  163. configuration options (see the "Configuration Mechanism" section below)\&.
  164. .RE
  165. .PP
  166. \-P, \-\-no\-pager
  167. .RS 4
  168. Do not pipe Git output into a pager\&.
  169. .RE
  170. .PP
  171. \-\-git\-dir=<path>
  172. .RS 4
  173. Set the path to the repository\&. This can also be controlled by setting the
  174. \fBGIT_DIR\fR
  175. environment variable\&. It can be an absolute path or relative path to current working directory\&.
  176. .RE
  177. .PP
  178. \-\-work\-tree=<path>
  179. .RS 4
  180. Set the path to the working tree\&. It can be an absolute path or a path relative to the current working directory\&. This can also be controlled by setting the GIT_WORK_TREE environment variable and the core\&.worktree configuration variable (see core\&.worktree in
  181. \fBgit-config\fR(1)
  182. for a more detailed discussion)\&.
  183. .RE
  184. .PP
  185. \-\-namespace=<path>
  186. .RS 4
  187. Set the Git namespace\&. See
  188. \fBgitnamespaces\fR(7)
  189. for more details\&. Equivalent to setting the
  190. \fBGIT_NAMESPACE\fR
  191. environment variable\&.
  192. .RE
  193. .PP
  194. \-\-super\-prefix=<path>
  195. .RS 4
  196. Currently for internal use only\&. Set a prefix which gives a path from above a repository down to its root\&. One use is to give submodules context about the superproject that invoked it\&.
  197. .RE
  198. .PP
  199. \-\-bare
  200. .RS 4
  201. Treat the repository as a bare repository\&. If GIT_DIR environment is not set, it is set to the current working directory\&.
  202. .RE
  203. .PP
  204. \-\-no\-replace\-objects
  205. .RS 4
  206. Do not use replacement refs to replace Git objects\&. See
  207. \fBgit-replace\fR(1)
  208. for more information\&.
  209. .RE
  210. .PP
  211. \-\-literal\-pathspecs
  212. .RS 4
  213. Treat pathspecs literally (i\&.e\&. no globbing, no pathspec magic)\&. This is equivalent to setting the
  214. \fBGIT_LITERAL_PATHSPECS\fR
  215. environment variable to
  216. \fB1\fR\&.
  217. .RE
  218. .PP
  219. \-\-glob\-pathspecs
  220. .RS 4
  221. Add "glob" magic to all pathspec\&. This is equivalent to setting the
  222. \fBGIT_GLOB_PATHSPECS\fR
  223. environment variable to
  224. \fB1\fR\&. Disabling globbing on individual pathspecs can be done using pathspec magic ":(literal)"
  225. .RE
  226. .PP
  227. \-\-noglob\-pathspecs
  228. .RS 4
  229. Add "literal" magic to all pathspec\&. This is equivalent to setting the
  230. \fBGIT_NOGLOB_PATHSPECS\fR
  231. environment variable to
  232. \fB1\fR\&. Enabling globbing on individual pathspecs can be done using pathspec magic ":(glob)"
  233. .RE
  234. .PP
  235. \-\-icase\-pathspecs
  236. .RS 4
  237. Add "icase" magic to all pathspec\&. This is equivalent to setting the
  238. \fBGIT_ICASE_PATHSPECS\fR
  239. environment variable to
  240. \fB1\fR\&.
  241. .RE
  242. .PP
  243. \-\-no\-optional\-locks
  244. .RS 4
  245. Do not perform optional operations that require locks\&. This is equivalent to setting the
  246. \fBGIT_OPTIONAL_LOCKS\fR
  247. to
  248. \fB0\fR\&.
  249. .RE
  250. .PP
  251. \-\-list\-cmds=group[,group\&...]
  252. .RS 4
  253. List commands by group\&. This is an internal/experimental option and may change or be removed in the future\&. Supported groups are: builtins, parseopt (builtin commands that use parse\-options), main (all commands in libexec directory), others (all other commands in
  254. \fB$PATH\fR
  255. that have git\- prefix), list\-<category> (see categories in command\-list\&.txt), nohelpers (exclude helper commands), alias and config (retrieve command list from config variable completion\&.commands)
  256. .RE
  257. .SH "GIT COMMANDS"
  258. .sp
  259. We divide Git into high level ("porcelain") commands and low level ("plumbing") commands\&.
  260. .SH "HIGH\-LEVEL COMMANDS (PORCELAIN)"
  261. .sp
  262. We separate the porcelain commands into the main commands and some ancillary user utilities\&.
  263. .SS "Main porcelain commands"
  264. .PP
  265. \fBgit-add\fR(1)
  266. .RS 4
  267. Add file contents to the index\&.
  268. .RE
  269. .PP
  270. \fBgit-am\fR(1)
  271. .RS 4
  272. Apply a series of patches from a mailbox\&.
  273. .RE
  274. .PP
  275. \fBgit-archive\fR(1)
  276. .RS 4
  277. Create an archive of files from a named tree\&.
  278. .RE
  279. .PP
  280. \fBgit-bisect\fR(1)
  281. .RS 4
  282. Use binary search to find the commit that introduced a bug\&.
  283. .RE
  284. .PP
  285. \fBgit-branch\fR(1)
  286. .RS 4
  287. List, create, or delete branches\&.
  288. .RE
  289. .PP
  290. \fBgit-bundle\fR(1)
  291. .RS 4
  292. Move objects and refs by archive\&.
  293. .RE
  294. .PP
  295. \fBgit-checkout\fR(1)
  296. .RS 4
  297. Switch branches or restore working tree files\&.
  298. .RE
  299. .PP
  300. \fBgit-cherry-pick\fR(1)
  301. .RS 4
  302. Apply the changes introduced by some existing commits\&.
  303. .RE
  304. .PP
  305. \fBgit-citool\fR(1)
  306. .RS 4
  307. Graphical alternative to git\-commit\&.
  308. .RE
  309. .PP
  310. \fBgit-clean\fR(1)
  311. .RS 4
  312. Remove untracked files from the working tree\&.
  313. .RE
  314. .PP
  315. \fBgit-clone\fR(1)
  316. .RS 4
  317. Clone a repository into a new directory\&.
  318. .RE
  319. .PP
  320. \fBgit-commit\fR(1)
  321. .RS 4
  322. Record changes to the repository\&.
  323. .RE
  324. .PP
  325. \fBgit-describe\fR(1)
  326. .RS 4
  327. Give an object a human readable name based on an available ref\&.
  328. .RE
  329. .PP
  330. \fBgit-diff\fR(1)
  331. .RS 4
  332. Show changes between commits, commit and working tree, etc\&.
  333. .RE
  334. .PP
  335. \fBgit-fetch\fR(1)
  336. .RS 4
  337. Download objects and refs from another repository\&.
  338. .RE
  339. .PP
  340. \fBgit-format-patch\fR(1)
  341. .RS 4
  342. Prepare patches for e\-mail submission\&.
  343. .RE
  344. .PP
  345. \fBgit-gc\fR(1)
  346. .RS 4
  347. Cleanup unnecessary files and optimize the local repository\&.
  348. .RE
  349. .PP
  350. \fBgit-grep\fR(1)
  351. .RS 4
  352. Print lines matching a pattern\&.
  353. .RE
  354. .PP
  355. \fBgit-gui\fR(1)
  356. .RS 4
  357. A portable graphical interface to Git\&.
  358. .RE
  359. .PP
  360. \fBgit-init\fR(1)
  361. .RS 4
  362. Create an empty Git repository or reinitialize an existing one\&.
  363. .RE
  364. .PP
  365. \fBgit-log\fR(1)
  366. .RS 4
  367. Show commit logs\&.
  368. .RE
  369. .PP
  370. \fBgit-merge\fR(1)
  371. .RS 4
  372. Join two or more development histories together\&.
  373. .RE
  374. .PP
  375. \fBgit-mv\fR(1)
  376. .RS 4
  377. Move or rename a file, a directory, or a symlink\&.
  378. .RE
  379. .PP
  380. \fBgit-notes\fR(1)
  381. .RS 4
  382. Add or inspect object notes\&.
  383. .RE
  384. .PP
  385. \fBgit-pull\fR(1)
  386. .RS 4
  387. Fetch from and integrate with another repository or a local branch\&.
  388. .RE
  389. .PP
  390. \fBgit-push\fR(1)
  391. .RS 4
  392. Update remote refs along with associated objects\&.
  393. .RE
  394. .PP
  395. \fBgit-range-diff\fR(1)
  396. .RS 4
  397. Compare two commit ranges (e\&.g\&. two versions of a branch)\&.
  398. .RE
  399. .PP
  400. \fBgit-rebase\fR(1)
  401. .RS 4
  402. Reapply commits on top of another base tip\&.
  403. .RE
  404. .PP
  405. \fBgit-reset\fR(1)
  406. .RS 4
  407. Reset current HEAD to the specified state\&.
  408. .RE
  409. .PP
  410. \fBgit-restore\fR(1)
  411. .RS 4
  412. Restore working tree files\&.
  413. .RE
  414. .PP
  415. \fBgit-revert\fR(1)
  416. .RS 4
  417. Revert some existing commits\&.
  418. .RE
  419. .PP
  420. \fBgit-rm\fR(1)
  421. .RS 4
  422. Remove files from the working tree and from the index\&.
  423. .RE
  424. .PP
  425. \fBgit-shortlog\fR(1)
  426. .RS 4
  427. Summarize
  428. \fIgit log\fR
  429. output\&.
  430. .RE
  431. .PP
  432. \fBgit-show\fR(1)
  433. .RS 4
  434. Show various types of objects\&.
  435. .RE
  436. .PP
  437. \fBgit-sparse-checkout\fR(1)
  438. .RS 4
  439. Initialize and modify the sparse\-checkout\&.
  440. .RE
  441. .PP
  442. \fBgit-stash\fR(1)
  443. .RS 4
  444. Stash the changes in a dirty working directory away\&.
  445. .RE
  446. .PP
  447. \fBgit-status\fR(1)
  448. .RS 4
  449. Show the working tree status\&.
  450. .RE
  451. .PP
  452. \fBgit-submodule\fR(1)
  453. .RS 4
  454. Initialize, update or inspect submodules\&.
  455. .RE
  456. .PP
  457. \fBgit-switch\fR(1)
  458. .RS 4
  459. Switch branches\&.
  460. .RE
  461. .PP
  462. \fBgit-tag\fR(1)
  463. .RS 4
  464. Create, list, delete or verify a tag object signed with GPG\&.
  465. .RE
  466. .PP
  467. \fBgit-worktree\fR(1)
  468. .RS 4
  469. Manage multiple working trees\&.
  470. .RE
  471. .PP
  472. \fBgitk\fR(1)
  473. .RS 4
  474. The Git repository browser\&.
  475. .RE
  476. .SS "Ancillary Commands"
  477. .sp
  478. Manipulators:
  479. .PP
  480. \fBgit-config\fR(1)
  481. .RS 4
  482. Get and set repository or global options\&.
  483. .RE
  484. .PP
  485. \fBgit-fast-export\fR(1)
  486. .RS 4
  487. Git data exporter\&.
  488. .RE
  489. .PP
  490. \fBgit-fast-import\fR(1)
  491. .RS 4
  492. Backend for fast Git data importers\&.
  493. .RE
  494. .PP
  495. \fBgit-filter-branch\fR(1)
  496. .RS 4
  497. Rewrite branches\&.
  498. .RE
  499. .PP
  500. \fBgit-mergetool\fR(1)
  501. .RS 4
  502. Run merge conflict resolution tools to resolve merge conflicts\&.
  503. .RE
  504. .PP
  505. \fBgit-pack-refs\fR(1)
  506. .RS 4
  507. Pack heads and tags for efficient repository access\&.
  508. .RE
  509. .PP
  510. \fBgit-prune\fR(1)
  511. .RS 4
  512. Prune all unreachable objects from the object database\&.
  513. .RE
  514. .PP
  515. \fBgit-reflog\fR(1)
  516. .RS 4
  517. Manage reflog information\&.
  518. .RE
  519. .PP
  520. \fBgit-remote\fR(1)
  521. .RS 4
  522. Manage set of tracked repositories\&.
  523. .RE
  524. .PP
  525. \fBgit-repack\fR(1)
  526. .RS 4
  527. Pack unpacked objects in a repository\&.
  528. .RE
  529. .PP
  530. \fBgit-replace\fR(1)
  531. .RS 4
  532. Create, list, delete refs to replace objects\&.
  533. .RE
  534. .sp
  535. Interrogators:
  536. .PP
  537. \fBgit-annotate\fR(1)
  538. .RS 4
  539. Annotate file lines with commit information\&.
  540. .RE
  541. .PP
  542. \fBgit-blame\fR(1)
  543. .RS 4
  544. Show what revision and author last modified each line of a file\&.
  545. .RE
  546. .PP
  547. \fBgit-count-objects\fR(1)
  548. .RS 4
  549. Count unpacked number of objects and their disk consumption\&.
  550. .RE
  551. .PP
  552. \fBgit-difftool\fR(1)
  553. .RS 4
  554. Show changes using common diff tools\&.
  555. .RE
  556. .PP
  557. \fBgit-fsck\fR(1)
  558. .RS 4
  559. Verifies the connectivity and validity of the objects in the database\&.
  560. .RE
  561. .PP
  562. \fBgit-help\fR(1)
  563. .RS 4
  564. Display help information about Git\&.
  565. .RE
  566. .PP
  567. \fBgit-instaweb\fR(1)
  568. .RS 4
  569. Instantly browse your working repository in gitweb\&.
  570. .RE
  571. .PP
  572. \fBgit-merge-tree\fR(1)
  573. .RS 4
  574. Show three\-way merge without touching index\&.
  575. .RE
  576. .PP
  577. \fBgit-rerere\fR(1)
  578. .RS 4
  579. Reuse recorded resolution of conflicted merges\&.
  580. .RE
  581. .PP
  582. \fBgit-show-branch\fR(1)
  583. .RS 4
  584. Show branches and their commits\&.
  585. .RE
  586. .PP
  587. \fBgit-verify-commit\fR(1)
  588. .RS 4
  589. Check the GPG signature of commits\&.
  590. .RE
  591. .PP
  592. \fBgit-verify-tag\fR(1)
  593. .RS 4
  594. Check the GPG signature of tags\&.
  595. .RE
  596. .PP
  597. \fBgit-whatchanged\fR(1)
  598. .RS 4
  599. Show logs with difference each commit introduces\&.
  600. .RE
  601. .PP
  602. \fBgitweb\fR(1)
  603. .RS 4
  604. Git web interface (web frontend to Git repositories)\&.
  605. .RE
  606. .SS "Interacting with Others"
  607. .sp
  608. These commands are to interact with foreign SCM and with other people via patch over e\-mail\&.
  609. .PP
  610. \fBgit-archimport\fR(1)
  611. .RS 4
  612. Import a GNU Arch repository into Git\&.
  613. .RE
  614. .PP
  615. \fBgit-cvsexportcommit\fR(1)
  616. .RS 4
  617. Export a single commit to a CVS checkout\&.
  618. .RE
  619. .PP
  620. \fBgit-cvsimport\fR(1)
  621. .RS 4
  622. Salvage your data out of another SCM people love to hate\&.
  623. .RE
  624. .PP
  625. \fBgit-cvsserver\fR(1)
  626. .RS 4
  627. A CVS server emulator for Git\&.
  628. .RE
  629. .PP
  630. \fBgit-imap-send\fR(1)
  631. .RS 4
  632. Send a collection of patches from stdin to an IMAP folder\&.
  633. .RE
  634. .PP
  635. \fBgit-p4\fR(1)
  636. .RS 4
  637. Import from and submit to Perforce repositories\&.
  638. .RE
  639. .PP
  640. \fBgit-quiltimport\fR(1)
  641. .RS 4
  642. Applies a quilt patchset onto the current branch\&.
  643. .RE
  644. .PP
  645. \fBgit-request-pull\fR(1)
  646. .RS 4
  647. Generates a summary of pending changes\&.
  648. .RE
  649. .PP
  650. \fBgit-send-email\fR(1)
  651. .RS 4
  652. Send a collection of patches as emails\&.
  653. .RE
  654. .PP
  655. \fBgit-svn\fR(1)
  656. .RS 4
  657. Bidirectional operation between a Subversion repository and Git\&.
  658. .RE
  659. .SS "Reset, restore and revert"
  660. .sp
  661. There are three commands with similar names: \fBgit reset\fR, \fBgit restore\fR and \fBgit revert\fR\&.
  662. .sp
  663. .RS 4
  664. .ie n \{\
  665. \h'-04'\(bu\h'+03'\c
  666. .\}
  667. .el \{\
  668. .sp -1
  669. .IP \(bu 2.3
  670. .\}
  671. \fBgit-revert\fR(1)
  672. is about making a new commit that reverts the changes made by other commits\&.
  673. .RE
  674. .sp
  675. .RS 4
  676. .ie n \{\
  677. \h'-04'\(bu\h'+03'\c
  678. .\}
  679. .el \{\
  680. .sp -1
  681. .IP \(bu 2.3
  682. .\}
  683. \fBgit-restore\fR(1)
  684. is about restoring files in the working tree from either the index or another commit\&. This command does not update your branch\&. The command can also be used to restore files in the index from another commit\&.
  685. .RE
  686. .sp
  687. .RS 4
  688. .ie n \{\
  689. \h'-04'\(bu\h'+03'\c
  690. .\}
  691. .el \{\
  692. .sp -1
  693. .IP \(bu 2.3
  694. .\}
  695. \fBgit-reset\fR(1)
  696. is about updating your branch, moving the tip in order to add or remove commits from the branch\&. This operation changes the commit history\&.
  697. .sp
  698. \fBgit reset\fR
  699. can also be used to restore the index, overlapping with
  700. \fBgit restore\fR\&.
  701. .RE
  702. .SH "LOW\-LEVEL COMMANDS (PLUMBING)"
  703. .sp
  704. Although Git includes its own porcelain layer, its low\-level commands are sufficient to support development of alternative porcelains\&. Developers of such porcelains might start by reading about \fBgit-update-index\fR(1) and \fBgit-read-tree\fR(1)\&.
  705. .sp
  706. The interface (input, output, set of options and the semantics) to these low\-level commands are meant to be a lot more stable than Porcelain level commands, because these commands are primarily for scripted use\&. The interface to Porcelain commands on the other hand are subject to change in order to improve the end user experience\&.
  707. .sp
  708. The following description divides the low\-level commands into commands that manipulate objects (in the repository, index, and working tree), commands that interrogate and compare objects, and commands that move objects and references between repositories\&.
  709. .SS "Manipulation commands"
  710. .PP
  711. \fBgit-apply\fR(1)
  712. .RS 4
  713. Apply a patch to files and/or to the index\&.
  714. .RE
  715. .PP
  716. \fBgit-checkout-index\fR(1)
  717. .RS 4
  718. Copy files from the index to the working tree\&.
  719. .RE
  720. .PP
  721. \fBgit-commit-graph\fR(1)
  722. .RS 4
  723. Write and verify Git commit\-graph files\&.
  724. .RE
  725. .PP
  726. \fBgit-commit-tree\fR(1)
  727. .RS 4
  728. Create a new commit object\&.
  729. .RE
  730. .PP
  731. \fBgit-hash-object\fR(1)
  732. .RS 4
  733. Compute object ID and optionally creates a blob from a file\&.
  734. .RE
  735. .PP
  736. \fBgit-index-pack\fR(1)
  737. .RS 4
  738. Build pack index file for an existing packed archive\&.
  739. .RE
  740. .PP
  741. \fBgit-merge-file\fR(1)
  742. .RS 4
  743. Run a three\-way file merge\&.
  744. .RE
  745. .PP
  746. \fBgit-merge-index\fR(1)
  747. .RS 4
  748. Run a merge for files needing merging\&.
  749. .RE
  750. .PP
  751. \fBgit-mktag\fR(1)
  752. .RS 4
  753. Creates a tag object\&.
  754. .RE
  755. .PP
  756. \fBgit-mktree\fR(1)
  757. .RS 4
  758. Build a tree\-object from ls\-tree formatted text\&.
  759. .RE
  760. .PP
  761. \fBgit-multi-pack-index\fR(1)
  762. .RS 4
  763. Write and verify multi\-pack\-indexes\&.
  764. .RE
  765. .PP
  766. \fBgit-pack-objects\fR(1)
  767. .RS 4
  768. Create a packed archive of objects\&.
  769. .RE
  770. .PP
  771. \fBgit-prune-packed\fR(1)
  772. .RS 4
  773. Remove extra objects that are already in pack files\&.
  774. .RE
  775. .PP
  776. \fBgit-read-tree\fR(1)
  777. .RS 4
  778. Reads tree information into the index\&.
  779. .RE
  780. .PP
  781. \fBgit-symbolic-ref\fR(1)
  782. .RS 4
  783. Read, modify and delete symbolic refs\&.
  784. .RE
  785. .PP
  786. \fBgit-unpack-objects\fR(1)
  787. .RS 4
  788. Unpack objects from a packed archive\&.
  789. .RE
  790. .PP
  791. \fBgit-update-index\fR(1)
  792. .RS 4
  793. Register file contents in the working tree to the index\&.
  794. .RE
  795. .PP
  796. \fBgit-update-ref\fR(1)
  797. .RS 4
  798. Update the object name stored in a ref safely\&.
  799. .RE
  800. .PP
  801. \fBgit-write-tree\fR(1)
  802. .RS 4
  803. Create a tree object from the current index\&.
  804. .RE
  805. .SS "Interrogation commands"
  806. .PP
  807. \fBgit-cat-file\fR(1)
  808. .RS 4
  809. Provide content or type and size information for repository objects\&.
  810. .RE
  811. .PP
  812. \fBgit-cherry\fR(1)
  813. .RS 4
  814. Find commits yet to be applied to upstream\&.
  815. .RE
  816. .PP
  817. \fBgit-diff-files\fR(1)
  818. .RS 4
  819. Compares files in the working tree and the index\&.
  820. .RE
  821. .PP
  822. \fBgit-diff-index\fR(1)
  823. .RS 4
  824. Compare a tree to the working tree or index\&.
  825. .RE
  826. .PP
  827. \fBgit-diff-tree\fR(1)
  828. .RS 4
  829. Compares the content and mode of blobs found via two tree objects\&.
  830. .RE
  831. .PP
  832. \fBgit-for-each-ref\fR(1)
  833. .RS 4
  834. Output information on each ref\&.
  835. .RE
  836. .PP
  837. \fBgit-get-tar-commit-id\fR(1)
  838. .RS 4
  839. Extract commit ID from an archive created using git\-archive\&.
  840. .RE
  841. .PP
  842. \fBgit-ls-files\fR(1)
  843. .RS 4
  844. Show information about files in the index and the working tree\&.
  845. .RE
  846. .PP
  847. \fBgit-ls-remote\fR(1)
  848. .RS 4
  849. List references in a remote repository\&.
  850. .RE
  851. .PP
  852. \fBgit-ls-tree\fR(1)
  853. .RS 4
  854. List the contents of a tree object\&.
  855. .RE
  856. .PP
  857. \fBgit-merge-base\fR(1)
  858. .RS 4
  859. Find as good common ancestors as possible for a merge\&.
  860. .RE
  861. .PP
  862. \fBgit-name-rev\fR(1)
  863. .RS 4
  864. Find symbolic names for given revs\&.
  865. .RE
  866. .PP
  867. \fBgit-pack-redundant\fR(1)
  868. .RS 4
  869. Find redundant pack files\&.
  870. .RE
  871. .PP
  872. \fBgit-rev-list\fR(1)
  873. .RS 4
  874. Lists commit objects in reverse chronological order\&.
  875. .RE
  876. .PP
  877. \fBgit-rev-parse\fR(1)
  878. .RS 4
  879. Pick out and massage parameters\&.
  880. .RE
  881. .PP
  882. \fBgit-show-index\fR(1)
  883. .RS 4
  884. Show packed archive index\&.
  885. .RE
  886. .PP
  887. \fBgit-show-ref\fR(1)
  888. .RS 4
  889. List references in a local repository\&.
  890. .RE
  891. .PP
  892. \fBgit-unpack-file\fR(1)
  893. .RS 4
  894. Creates a temporary file with a blob\(cqs contents\&.
  895. .RE
  896. .PP
  897. \fBgit-var\fR(1)
  898. .RS 4
  899. Show a Git logical variable\&.
  900. .RE
  901. .PP
  902. \fBgit-verify-pack\fR(1)
  903. .RS 4
  904. Validate packed Git archive files\&.
  905. .RE
  906. .sp
  907. In general, the interrogate commands do not touch the files in the working tree\&.
  908. .SS "Syncing repositories"
  909. .PP
  910. \fBgit-daemon\fR(1)
  911. .RS 4
  912. A really simple server for Git repositories\&.
  913. .RE
  914. .PP
  915. \fBgit-fetch-pack\fR(1)
  916. .RS 4
  917. Receive missing objects from another repository\&.
  918. .RE
  919. .PP
  920. \fBgit-http-backend\fR(1)
  921. .RS 4
  922. Server side implementation of Git over HTTP\&.
  923. .RE
  924. .PP
  925. \fBgit-send-pack\fR(1)
  926. .RS 4
  927. Push objects over Git protocol to another repository\&.
  928. .RE
  929. .PP
  930. \fBgit-update-server-info\fR(1)
  931. .RS 4
  932. Update auxiliary info file to help dumb servers\&.
  933. .RE
  934. .sp
  935. The following are helper commands used by the above; end users typically do not use them directly\&.
  936. .PP
  937. \fBgit-http-fetch\fR(1)
  938. .RS 4
  939. Download from a remote Git repository via HTTP\&.
  940. .RE
  941. .PP
  942. \fBgit-http-push\fR(1)
  943. .RS 4
  944. Push objects over HTTP/DAV to another repository\&.
  945. .RE
  946. .PP
  947. \fBgit-parse-remote\fR(1)
  948. .RS 4
  949. Routines to help parsing remote repository access parameters\&.
  950. .RE
  951. .PP
  952. \fBgit-receive-pack\fR(1)
  953. .RS 4
  954. Receive what is pushed into the repository\&.
  955. .RE
  956. .PP
  957. \fBgit-shell\fR(1)
  958. .RS 4
  959. Restricted login shell for Git\-only SSH access\&.
  960. .RE
  961. .PP
  962. \fBgit-upload-archive\fR(1)
  963. .RS 4
  964. Send archive back to git\-archive\&.
  965. .RE
  966. .PP
  967. \fBgit-upload-pack\fR(1)
  968. .RS 4
  969. Send objects packed back to git\-fetch\-pack\&.
  970. .RE
  971. .SS "Internal helper commands"
  972. .sp
  973. These are internal helper commands used by other commands; end users typically do not use them directly\&.
  974. .PP
  975. \fBgit-check-attr\fR(1)
  976. .RS 4
  977. Display gitattributes information\&.
  978. .RE
  979. .PP
  980. \fBgit-check-ignore\fR(1)
  981. .RS 4
  982. Debug gitignore / exclude files\&.
  983. .RE
  984. .PP
  985. \fBgit-check-mailmap\fR(1)
  986. .RS 4
  987. Show canonical names and email addresses of contacts\&.
  988. .RE
  989. .PP
  990. \fBgit-check-ref-format\fR(1)
  991. .RS 4
  992. Ensures that a reference name is well formed\&.
  993. .RE
  994. .PP
  995. \fBgit-column\fR(1)
  996. .RS 4
  997. Display data in columns\&.
  998. .RE
  999. .PP
  1000. \fBgit-credential\fR(1)
  1001. .RS 4
  1002. Retrieve and store user credentials\&.
  1003. .RE
  1004. .PP
  1005. \fBgit-credential-cache\fR(1)
  1006. .RS 4
  1007. Helper to temporarily store passwords in memory\&.
  1008. .RE
  1009. .PP
  1010. \fBgit-credential-store\fR(1)
  1011. .RS 4
  1012. Helper to store credentials on disk\&.
  1013. .RE
  1014. .PP
  1015. \fBgit-fmt-merge-msg\fR(1)
  1016. .RS 4
  1017. Produce a merge commit message\&.
  1018. .RE
  1019. .PP
  1020. \fBgit-interpret-trailers\fR(1)
  1021. .RS 4
  1022. Add or parse structured information in commit messages\&.
  1023. .RE
  1024. .PP
  1025. \fBgit-mailinfo\fR(1)
  1026. .RS 4
  1027. Extracts patch and authorship from a single e\-mail message\&.
  1028. .RE
  1029. .PP
  1030. \fBgit-mailsplit\fR(1)
  1031. .RS 4
  1032. Simple UNIX mbox splitter program\&.
  1033. .RE
  1034. .PP
  1035. \fBgit-merge-one-file\fR(1)
  1036. .RS 4
  1037. The standard helper program to use with git\-merge\-index\&.
  1038. .RE
  1039. .PP
  1040. \fBgit-patch-id\fR(1)
  1041. .RS 4
  1042. Compute unique ID for a patch\&.
  1043. .RE
  1044. .PP
  1045. \fBgit-sh-i18n\fR(1)
  1046. .RS 4
  1047. Git\(cqs i18n setup code for shell scripts\&.
  1048. .RE
  1049. .PP
  1050. \fBgit-sh-setup\fR(1)
  1051. .RS 4
  1052. Common Git shell script setup code\&.
  1053. .RE
  1054. .PP
  1055. \fBgit-stripspace\fR(1)
  1056. .RS 4
  1057. Remove unnecessary whitespace\&.
  1058. .RE
  1059. .SH "CONFIGURATION MECHANISM"
  1060. .sp
  1061. Git uses a simple text format to store customizations that are per repository and are per user\&. Such a configuration file may look like this:
  1062. .sp
  1063. .if n \{\
  1064. .RS 4
  1065. .\}
  1066. .nf
  1067. #
  1068. # A \*(Aq#\*(Aq or \*(Aq;\*(Aq character indicates a comment\&.
  1069. #
  1070. ; core variables
  1071. [core]
  1072. ; Don\*(Aqt trust file modes
  1073. filemode = false
  1074. ; user identity
  1075. [user]
  1076. name = "Junio C Hamano"
  1077. email = "gitster@pobox\&.com"
  1078. .fi
  1079. .if n \{\
  1080. .RE
  1081. .\}
  1082. .sp
  1083. .sp
  1084. Various commands read from the configuration file and adjust their operation accordingly\&. See \fBgit-config\fR(1) for a list and more details about the configuration mechanism\&.
  1085. .SH "IDENTIFIER TERMINOLOGY"
  1086. .PP
  1087. <object>
  1088. .RS 4
  1089. Indicates the object name for any type of object\&.
  1090. .RE
  1091. .PP
  1092. <blob>
  1093. .RS 4
  1094. Indicates a blob object name\&.
  1095. .RE
  1096. .PP
  1097. <tree>
  1098. .RS 4
  1099. Indicates a tree object name\&.
  1100. .RE
  1101. .PP
  1102. <commit>
  1103. .RS 4
  1104. Indicates a commit object name\&.
  1105. .RE
  1106. .PP
  1107. <tree\-ish>
  1108. .RS 4
  1109. Indicates a tree, commit or tag object name\&. A command that takes a <tree\-ish> argument ultimately wants to operate on a <tree> object but automatically dereferences <commit> and <tag> objects that point at a <tree>\&.
  1110. .RE
  1111. .PP
  1112. <commit\-ish>
  1113. .RS 4
  1114. Indicates a commit or tag object name\&. A command that takes a <commit\-ish> argument ultimately wants to operate on a <commit> object but automatically dereferences <tag> objects that point at a <commit>\&.
  1115. .RE
  1116. .PP
  1117. <type>
  1118. .RS 4
  1119. Indicates that an object type is required\&. Currently one of:
  1120. \fBblob\fR,
  1121. \fBtree\fR,
  1122. \fBcommit\fR, or
  1123. \fBtag\fR\&.
  1124. .RE
  1125. .PP
  1126. <file>
  1127. .RS 4
  1128. Indicates a filename \- almost always relative to the root of the tree structure
  1129. \fBGIT_INDEX_FILE\fR
  1130. describes\&.
  1131. .RE
  1132. .SH "SYMBOLIC IDENTIFIERS"
  1133. .sp
  1134. Any Git command accepting any <object> can also use the following symbolic notation:
  1135. .PP
  1136. HEAD
  1137. .RS 4
  1138. indicates the head of the current branch\&.
  1139. .RE
  1140. .PP
  1141. <tag>
  1142. .RS 4
  1143. a valid tag
  1144. \fIname\fR
  1145. (i\&.e\&. a
  1146. \fBrefs/tags/<tag>\fR
  1147. reference)\&.
  1148. .RE
  1149. .PP
  1150. <head>
  1151. .RS 4
  1152. a valid head
  1153. \fIname\fR
  1154. (i\&.e\&. a
  1155. \fBrefs/heads/<head>\fR
  1156. reference)\&.
  1157. .RE
  1158. .sp
  1159. For a more complete list of ways to spell object names, see "SPECIFYING REVISIONS" section in \fBgitrevisions\fR(7)\&.
  1160. .SH "FILE/DIRECTORY STRUCTURE"
  1161. .sp
  1162. Please see the \fBgitrepository-layout\fR(5) document\&.
  1163. .sp
  1164. Read \fBgithooks\fR(5) for more details about each hook\&.
  1165. .sp
  1166. Higher level SCMs may provide and manage additional information in the \fB$GIT_DIR\fR\&.
  1167. .SH "TERMINOLOGY"
  1168. .sp
  1169. Please see \fBgitglossary\fR(7)\&.
  1170. .SH "ENVIRONMENT VARIABLES"
  1171. .sp
  1172. Various Git commands use the following environment variables:
  1173. .SS "The Git Repository"
  1174. .sp
  1175. These environment variables apply to \fIall\fR core Git commands\&. Nb: it is worth noting that they may be used/overridden by SCMS sitting above Git so take care if using a foreign front\-end\&.
  1176. .PP
  1177. \fBGIT_INDEX_FILE\fR
  1178. .RS 4
  1179. This environment allows the specification of an alternate index file\&. If not specified, the default of
  1180. \fB$GIT_DIR/index\fR
  1181. is used\&.
  1182. .RE
  1183. .PP
  1184. \fBGIT_INDEX_VERSION\fR
  1185. .RS 4
  1186. This environment variable allows the specification of an index version for new repositories\&. It won\(cqt affect existing index files\&. By default index file version 2 or 3 is used\&. See
  1187. \fBgit-update-index\fR(1)
  1188. for more information\&.
  1189. .RE
  1190. .PP
  1191. \fBGIT_OBJECT_DIRECTORY\fR
  1192. .RS 4
  1193. If the object storage directory is specified via this environment variable then the sha1 directories are created underneath \- otherwise the default
  1194. \fB$GIT_DIR/objects\fR
  1195. directory is used\&.
  1196. .RE
  1197. .PP
  1198. \fBGIT_ALTERNATE_OBJECT_DIRECTORIES\fR
  1199. .RS 4
  1200. Due to the immutable nature of Git objects, old objects can be archived into shared, read\-only directories\&. This variable specifies a ":" separated (on Windows ";" separated) list of Git object directories which can be used to search for Git objects\&. New objects will not be written to these directories\&.
  1201. .sp
  1202. Entries that begin with
  1203. \fB"\fR
  1204. (double\-quote) will be interpreted as C\-style quoted paths, removing leading and trailing double\-quotes and respecting backslash escapes\&. E\&.g\&., the value
  1205. \fB"path\-with\-\e"\-and\-:\-in\-it":vanilla\-path\fR
  1206. has two paths:
  1207. \fBpath\-with\-"\-and\-:\-in\-it\fR
  1208. and
  1209. \fBvanilla\-path\fR\&.
  1210. .RE
  1211. .PP
  1212. \fBGIT_DIR\fR
  1213. .RS 4
  1214. If the
  1215. \fBGIT_DIR\fR
  1216. environment variable is set then it specifies a path to use instead of the default
  1217. \fB\&.git\fR
  1218. for the base of the repository\&. The
  1219. \fB\-\-git\-dir\fR
  1220. command\-line option also sets this value\&.
  1221. .RE
  1222. .PP
  1223. \fBGIT_WORK_TREE\fR
  1224. .RS 4
  1225. Set the path to the root of the working tree\&. This can also be controlled by the
  1226. \fB\-\-work\-tree\fR
  1227. command\-line option and the core\&.worktree configuration variable\&.
  1228. .RE
  1229. .PP
  1230. \fBGIT_NAMESPACE\fR
  1231. .RS 4
  1232. Set the Git namespace; see
  1233. \fBgitnamespaces\fR(7)
  1234. for details\&. The
  1235. \fB\-\-namespace\fR
  1236. command\-line option also sets this value\&.
  1237. .RE
  1238. .PP
  1239. \fBGIT_CEILING_DIRECTORIES\fR
  1240. .RS 4
  1241. This should be a colon\-separated list of absolute paths\&. If set, it is a list of directories that Git should not chdir up into while looking for a repository directory (useful for excluding slow\-loading network directories)\&. It will not exclude the current working directory or a GIT_DIR set on the command line or in the environment\&. Normally, Git has to read the entries in this list and resolve any symlink that might be present in order to compare them with the current directory\&. However, if even this access is slow, you can add an empty entry to the list to tell Git that the subsequent entries are not symlinks and needn\(cqt be resolved; e\&.g\&.,
  1242. \fBGIT_CEILING_DIRECTORIES=/maybe/symlink::/very/slow/non/symlink\fR\&.
  1243. .RE
  1244. .PP
  1245. \fBGIT_DISCOVERY_ACROSS_FILESYSTEM\fR
  1246. .RS 4
  1247. When run in a directory that does not have "\&.git" repository directory, Git tries to find such a directory in the parent directories to find the top of the working tree, but by default it does not cross filesystem boundaries\&. This environment variable can be set to true to tell Git not to stop at filesystem boundaries\&. Like
  1248. \fBGIT_CEILING_DIRECTORIES\fR, this will not affect an explicit repository directory set via
  1249. \fBGIT_DIR\fR
  1250. or on the command line\&.
  1251. .RE
  1252. .PP
  1253. \fBGIT_COMMON_DIR\fR
  1254. .RS 4
  1255. If this variable is set to a path, non\-worktree files that are normally in $GIT_DIR will be taken from this path instead\&. Worktree\-specific files such as HEAD or index are taken from $GIT_DIR\&. See
  1256. \fBgitrepository-layout\fR(5)
  1257. and
  1258. \fBgit-worktree\fR(1)
  1259. for details\&. This variable has lower precedence than other path variables such as GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY\&...
  1260. .RE
  1261. .SS "Git Commits"
  1262. .PP
  1263. \fBGIT_AUTHOR_NAME\fR
  1264. .RS 4
  1265. The human\-readable name used in the author identity when creating commit or tag objects, or when writing reflogs\&. Overrides the
  1266. \fBuser\&.name\fR
  1267. and
  1268. \fBauthor\&.name\fR
  1269. configuration settings\&.
  1270. .RE
  1271. .PP
  1272. \fBGIT_AUTHOR_EMAIL\fR
  1273. .RS 4
  1274. The email address used in the author identity when creating commit or tag objects, or when writing reflogs\&. Overrides the
  1275. \fBuser\&.email\fR
  1276. and
  1277. \fBauthor\&.email\fR
  1278. configuration settings\&.
  1279. .RE
  1280. .PP
  1281. \fBGIT_AUTHOR_DATE\fR
  1282. .RS 4
  1283. The date used for the author identity when creating commit or tag objects, or when writing reflogs\&. See
  1284. \fBgit-commit\fR(1)
  1285. for valid formats\&.
  1286. .RE
  1287. .PP
  1288. \fBGIT_COMMITTER_NAME\fR
  1289. .RS 4
  1290. The human\-readable name used in the committer identity when creating commit or tag objects, or when writing reflogs\&. Overrides the
  1291. \fBuser\&.name\fR
  1292. and
  1293. \fBcommitter\&.name\fR
  1294. configuration settings\&.
  1295. .RE
  1296. .PP
  1297. \fBGIT_COMMITTER_EMAIL\fR
  1298. .RS 4
  1299. The email address used in the author identity when creating commit or tag objects, or when writing reflogs\&. Overrides the
  1300. \fBuser\&.email\fR
  1301. and
  1302. \fBcommitter\&.email\fR
  1303. configuration settings\&.
  1304. .RE
  1305. .PP
  1306. \fBGIT_COMMITTER_DATE\fR
  1307. .RS 4
  1308. The date used for the committer identity when creating commit or tag objects, or when writing reflogs\&. See
  1309. \fBgit-commit\fR(1)
  1310. for valid formats\&.
  1311. .RE
  1312. .PP
  1313. \fBEMAIL\fR
  1314. .RS 4
  1315. The email address used in the author and committer identities if no other relevant environment variable or configuration setting has been set\&.
  1316. .RE
  1317. .SS "Git Diffs"
  1318. .PP
  1319. \fBGIT_DIFF_OPTS\fR
  1320. .RS 4
  1321. Only valid setting is "\-\-unified=??" or "\-u??" to set the number of context lines shown when a unified diff is created\&. This takes precedence over any "\-U" or "\-\-unified" option value passed on the Git diff command line\&.
  1322. .RE
  1323. .PP
  1324. \fBGIT_EXTERNAL_DIFF\fR
  1325. .RS 4
  1326. When the environment variable
  1327. \fBGIT_EXTERNAL_DIFF\fR
  1328. is set, the program named by it is called, instead of the diff invocation described above\&. For a path that is added, removed, or modified,
  1329. \fBGIT_EXTERNAL_DIFF\fR
  1330. is called with 7 parameters:
  1331. .sp
  1332. .if n \{\
  1333. .RS 4
  1334. .\}
  1335. .nf
  1336. path old\-file old\-hex old\-mode new\-file new\-hex new\-mode
  1337. .fi
  1338. .if n \{\
  1339. .RE
  1340. .\}
  1341. .sp
  1342. where:
  1343. .RE
  1344. .PP
  1345. <old|new>\-file
  1346. .RS 4
  1347. are files GIT_EXTERNAL_DIFF can use to read the contents of <old|new>,
  1348. .RE
  1349. .PP
  1350. <old|new>\-hex
  1351. .RS 4
  1352. are the 40\-hexdigit SHA\-1 hashes,
  1353. .RE
  1354. .PP
  1355. <old|new>\-mode
  1356. .RS 4
  1357. are the octal representation of the file modes\&.
  1358. .sp
  1359. The file parameters can point at the user\(cqs working file (e\&.g\&.
  1360. \fBnew\-file\fR
  1361. in "git\-diff\-files"),
  1362. \fB/dev/null\fR
  1363. (e\&.g\&.
  1364. \fBold\-file\fR
  1365. when a new file is added), or a temporary file (e\&.g\&.
  1366. \fBold\-file\fR
  1367. in the index)\&.
  1368. \fBGIT_EXTERNAL_DIFF\fR
  1369. should not worry about unlinking the temporary file \-\-\- it is removed when
  1370. \fBGIT_EXTERNAL_DIFF\fR
  1371. exits\&.
  1372. .sp
  1373. For a path that is unmerged,
  1374. \fBGIT_EXTERNAL_DIFF\fR
  1375. is called with 1 parameter, <path>\&.
  1376. .sp
  1377. For each path
  1378. \fBGIT_EXTERNAL_DIFF\fR
  1379. is called, two environment variables,
  1380. \fBGIT_DIFF_PATH_COUNTER\fR
  1381. and
  1382. \fBGIT_DIFF_PATH_TOTAL\fR
  1383. are set\&.
  1384. .RE
  1385. .PP
  1386. \fBGIT_DIFF_PATH_COUNTER\fR
  1387. .RS 4
  1388. A 1\-based counter incremented by one for every path\&.
  1389. .RE
  1390. .PP
  1391. \fBGIT_DIFF_PATH_TOTAL\fR
  1392. .RS 4
  1393. The total number of paths\&.
  1394. .RE
  1395. .SS "other"
  1396. .PP
  1397. \fBGIT_MERGE_VERBOSITY\fR
  1398. .RS 4
  1399. A number controlling the amount of output shown by the recursive merge strategy\&. Overrides merge\&.verbosity\&. See
  1400. \fBgit-merge\fR(1)
  1401. .RE
  1402. .PP
  1403. \fBGIT_PAGER\fR
  1404. .RS 4
  1405. This environment variable overrides
  1406. \fB$PAGER\fR\&. If it is set to an empty string or to the value "cat", Git will not launch a pager\&. See also the
  1407. \fBcore\&.pager\fR
  1408. option in
  1409. \fBgit-config\fR(1)\&.
  1410. .RE
  1411. .PP
  1412. \fBGIT_PROGRESS_DELAY\fR
  1413. .RS 4
  1414. A number controlling how many seconds to delay before showing optional progress indicators\&. Defaults to 2\&.
  1415. .RE
  1416. .PP
  1417. \fBGIT_EDITOR\fR
  1418. .RS 4
  1419. This environment variable overrides
  1420. \fB$EDITOR\fR
  1421. and
  1422. \fB$VISUAL\fR\&. It is used by several Git commands when, on interactive mode, an editor is to be launched\&. See also
  1423. \fBgit-var\fR(1)
  1424. and the
  1425. \fBcore\&.editor\fR
  1426. option in
  1427. \fBgit-config\fR(1)\&.
  1428. .RE
  1429. .PP
  1430. \fBGIT_SSH\fR, \fBGIT_SSH_COMMAND\fR
  1431. .RS 4
  1432. If either of these environment variables is set then
  1433. \fIgit fetch\fR
  1434. and
  1435. \fIgit push\fR
  1436. will use the specified command instead of
  1437. \fIssh\fR
  1438. when they need to connect to a remote system\&. The command\-line parameters passed to the configured command are determined by the ssh variant\&. See
  1439. \fBssh\&.variant\fR
  1440. option in
  1441. \fBgit-config\fR(1)
  1442. for details\&.
  1443. .sp
  1444. \fB$GIT_SSH_COMMAND\fR
  1445. takes precedence over
  1446. \fB$GIT_SSH\fR, and is interpreted by the shell, which allows additional arguments to be included\&.
  1447. \fB$GIT_SSH\fR
  1448. on the other hand must be just the path to a program (which can be a wrapper shell script, if additional arguments are needed)\&.
  1449. .sp
  1450. Usually it is easier to configure any desired options through your personal
  1451. \fB\&.ssh/config\fR
  1452. file\&. Please consult your ssh documentation for further details\&.
  1453. .RE
  1454. .PP
  1455. \fBGIT_SSH_VARIANT\fR
  1456. .RS 4
  1457. If this environment variable is set, it overrides Git\(cqs autodetection whether
  1458. \fBGIT_SSH\fR/\fBGIT_SSH_COMMAND\fR/\fBcore\&.sshCommand\fR
  1459. refer to OpenSSH, plink or tortoiseplink\&. This variable overrides the config setting
  1460. \fBssh\&.variant\fR
  1461. that serves the same purpose\&.
  1462. .RE
  1463. .PP
  1464. \fBGIT_ASKPASS\fR
  1465. .RS 4
  1466. If this environment variable is set, then Git commands which need to acquire passwords or passphrases (e\&.g\&. for HTTP or IMAP authentication) will call this program with a suitable prompt as command\-line argument and read the password from its STDOUT\&. See also the
  1467. \fBcore\&.askPass\fR
  1468. option in
  1469. \fBgit-config\fR(1)\&.
  1470. .RE
  1471. .PP
  1472. \fBGIT_TERMINAL_PROMPT\fR
  1473. .RS 4
  1474. If this environment variable is set to
  1475. \fB0\fR, git will not prompt on the terminal (e\&.g\&., when asking for HTTP authentication)\&.
  1476. .RE
  1477. .PP
  1478. \fBGIT_CONFIG_NOSYSTEM\fR
  1479. .RS 4
  1480. Whether to skip reading settings from the system\-wide
  1481. \fB$(prefix)/etc/gitconfig\fR
  1482. file\&. This environment variable can be used along with
  1483. \fB$HOME\fR
  1484. and
  1485. \fB$XDG_CONFIG_HOME\fR
  1486. to create a predictable environment for a picky script, or you can set it temporarily to avoid using a buggy
  1487. \fB/etc/gitconfig\fR
  1488. file while waiting for someone with sufficient permissions to fix it\&.
  1489. .RE
  1490. .PP
  1491. \fBGIT_FLUSH\fR
  1492. .RS 4
  1493. If this environment variable is set to "1", then commands such as
  1494. \fIgit blame\fR
  1495. (in incremental mode),
  1496. \fIgit rev\-list\fR,
  1497. \fIgit log\fR,
  1498. \fIgit check\-attr\fR
  1499. and
  1500. \fIgit check\-ignore\fR
  1501. will force a flush of the output stream after each record have been flushed\&. If this variable is set to "0", the output of these commands will be done using completely buffered I/O\&. If this environment variable is not set, Git will choose buffered or record\-oriented flushing based on whether stdout appears to be redirected to a file or not\&.
  1502. .RE
  1503. .PP
  1504. \fBGIT_TRACE\fR
  1505. .RS 4
  1506. Enables general trace messages, e\&.g\&. alias expansion, built\-in command execution and external command execution\&.
  1507. .sp
  1508. If this variable is set to "1", "2" or "true" (comparison is case insensitive), trace messages will be printed to stderr\&.
  1509. .sp
  1510. If the variable is set to an integer value greater than 2 and lower than 10 (strictly) then Git will interpret this value as an open file descriptor and will try to write the trace messages into this file descriptor\&.
  1511. .sp
  1512. Alternatively, if the variable is set to an absolute path (starting with a
  1513. \fI/\fR
  1514. character), Git will interpret this as a file path and will try to append the trace messages to it\&.
  1515. .sp
  1516. Unsetting the variable, or setting it to empty, "0" or "false" (case insensitive) disables trace messages\&.
  1517. .RE
  1518. .PP
  1519. \fBGIT_TRACE_FSMONITOR\fR
  1520. .RS 4
  1521. Enables trace messages for the filesystem monitor extension\&. See
  1522. \fBGIT_TRACE\fR
  1523. for available trace output options\&.
  1524. .RE
  1525. .PP
  1526. \fBGIT_TRACE_PACK_ACCESS\fR
  1527. .RS 4
  1528. Enables trace messages for all accesses to any packs\&. For each access, the pack file name and an offset in the pack is recorded\&. This may be helpful for troubleshooting some pack\-related performance problems\&. See
  1529. \fBGIT_TRACE\fR
  1530. for available trace output options\&.
  1531. .RE
  1532. .PP
  1533. \fBGIT_TRACE_PACKET\fR
  1534. .RS 4
  1535. Enables trace messages for all packets coming in or out of a given program\&. This can help with debugging object negotiation or other protocol issues\&. Tracing is turned off at a packet starting with "PACK" (but see
  1536. \fBGIT_TRACE_PACKFILE\fR
  1537. below)\&. See
  1538. \fBGIT_TRACE\fR
  1539. for available trace output options\&.
  1540. .RE
  1541. .PP
  1542. \fBGIT_TRACE_PACKFILE\fR
  1543. .RS 4
  1544. Enables tracing of packfiles sent or received by a given program\&. Unlike other trace output, this trace is verbatim: no headers, and no quoting of binary data\&. You almost certainly want to direct into a file (e\&.g\&.,
  1545. \fBGIT_TRACE_PACKFILE=/tmp/my\&.pack\fR) rather than displaying it on the terminal or mixing it with other trace output\&.
  1546. .sp
  1547. Note that this is currently only implemented for the client side of clones and fetches\&.
  1548. .RE
  1549. .PP
  1550. \fBGIT_TRACE_PERFORMANCE\fR
  1551. .RS 4
  1552. Enables performance related trace messages, e\&.g\&. total execution time of each Git command\&. See
  1553. \fBGIT_TRACE\fR
  1554. for available trace output options\&.
  1555. .RE
  1556. .PP
  1557. \fBGIT_TRACE_SETUP\fR
  1558. .RS 4
  1559. Enables trace messages printing the \&.git, working tree and current working directory after Git has completed its setup phase\&. See
  1560. \fBGIT_TRACE\fR
  1561. for available trace output options\&.
  1562. .RE
  1563. .PP
  1564. \fBGIT_TRACE_SHALLOW\fR
  1565. .RS 4
  1566. Enables trace messages that can help debugging fetching / cloning of shallow repositories\&. See
  1567. \fBGIT_TRACE\fR
  1568. for available trace output options\&.
  1569. .RE
  1570. .PP
  1571. \fBGIT_TRACE_CURL\fR
  1572. .RS 4
  1573. Enables a curl full trace dump of all incoming and outgoing data, including descriptive information, of the git transport protocol\&. This is similar to doing curl
  1574. \fB\-\-trace\-ascii\fR
  1575. on the command line\&. This option overrides setting the
  1576. \fBGIT_CURL_VERBOSE\fR
  1577. environment variable\&. See
  1578. \fBGIT_TRACE\fR
  1579. for available trace output options\&.
  1580. .RE
  1581. .PP
  1582. \fBGIT_TRACE_CURL_NO_DATA\fR
  1583. .RS 4
  1584. When a curl trace is enabled (see
  1585. \fBGIT_TRACE_CURL\fR
  1586. above), do not dump data (that is, only dump info lines and headers)\&.
  1587. .RE
  1588. .PP
  1589. \fBGIT_TRACE2\fR
  1590. .RS 4
  1591. Enables more detailed trace messages from the "trace2" library\&. Output from
  1592. \fBGIT_TRACE2\fR
  1593. is a simple text\-based format for human readability\&.
  1594. .sp
  1595. If this variable is set to "1", "2" or "true" (comparison is case insensitive), trace messages will be printed to stderr\&.
  1596. .sp
  1597. If the variable is set to an integer value greater than 2 and lower than 10 (strictly) then Git will interpret this value as an open file descriptor and will try to write the trace messages into this file descriptor\&.
  1598. .sp
  1599. Alternatively, if the variable is set to an absolute path (starting with a
  1600. \fI/\fR
  1601. character), Git will interpret this as a file path and will try to append the trace messages to it\&. If the path already exists and is a directory, the trace messages will be written to files (one per process) in that directory, named according to the last component of the SID and an optional counter (to avoid filename collisions)\&.
  1602. .sp
  1603. In addition, if the variable is set to
  1604. \fBaf_unix:[<socket_type>:]<absolute\-pathname>\fR, Git will try to open the path as a Unix Domain Socket\&. The socket type can be either
  1605. \fBstream\fR
  1606. or
  1607. \fBdgram\fR\&.
  1608. .sp
  1609. Unsetting the variable, or setting it to empty, "0" or "false" (case insensitive) disables trace messages\&.
  1610. .sp
  1611. See
  1612. \m[blue]\fBTrace2 documentation\fR\m[]\&\s-2\u[2]\d\s+2
  1613. for full details\&.
  1614. .RE
  1615. .PP
  1616. \fBGIT_TRACE2_EVENT\fR
  1617. .RS 4
  1618. This setting writes a JSON\-based format that is suited for machine interpretation\&. See
  1619. \fBGIT_TRACE2\fR
  1620. for available trace output options and
  1621. \m[blue]\fBTrace2 documentation\fR\m[]\&\s-2\u[2]\d\s+2
  1622. for full details\&.
  1623. .RE
  1624. .PP
  1625. \fBGIT_TRACE2_PERF\fR
  1626. .RS 4
  1627. In addition to the text\-based messages available in
  1628. \fBGIT_TRACE2\fR, this setting writes a column\-based format for understanding nesting regions\&. See
  1629. \fBGIT_TRACE2\fR
  1630. for available trace output options and
  1631. \m[blue]\fBTrace2 documentation\fR\m[]\&\s-2\u[2]\d\s+2
  1632. for full details\&.
  1633. .RE
  1634. .PP
  1635. \fBGIT_REDACT_COOKIES\fR
  1636. .RS 4
  1637. This can be set to a comma\-separated list of strings\&. When a curl trace is enabled (see
  1638. \fBGIT_TRACE_CURL\fR
  1639. above), whenever a "Cookies:" header sent by the client is dumped, values of cookies whose key is in that list (case\-sensitive) are redacted\&.
  1640. .RE
  1641. .PP
  1642. \fBGIT_LITERAL_PATHSPECS\fR
  1643. .RS 4
  1644. Setting this variable to
  1645. \fB1\fR
  1646. will cause Git to treat all pathspecs literally, rather than as glob patterns\&. For example, running
  1647. \fBGIT_LITERAL_PATHSPECS=1 git log \-\- \*(Aq*\&.c\*(Aq\fR
  1648. will search for commits that touch the path
  1649. \fB*\&.c\fR, not any paths that the glob
  1650. \fB*\&.c\fR
  1651. matches\&. You might want this if you are feeding literal paths to Git (e\&.g\&., paths previously given to you by
  1652. \fBgit ls\-tree\fR,
  1653. \fB\-\-raw\fR
  1654. diff output, etc)\&.
  1655. .RE
  1656. .PP
  1657. \fBGIT_GLOB_PATHSPECS\fR
  1658. .RS 4
  1659. Setting this variable to
  1660. \fB1\fR
  1661. will cause Git to treat all pathspecs as glob patterns (aka "glob" magic)\&.
  1662. .RE
  1663. .PP
  1664. \fBGIT_NOGLOB_PATHSPECS\fR
  1665. .RS 4
  1666. Setting this variable to
  1667. \fB1\fR
  1668. will cause Git to treat all pathspecs as literal (aka "literal" magic)\&.
  1669. .RE
  1670. .PP
  1671. \fBGIT_ICASE_PATHSPECS\fR
  1672. .RS 4
  1673. Setting this variable to
  1674. \fB1\fR
  1675. will cause Git to treat all pathspecs as case\-insensitive\&.
  1676. .RE
  1677. .PP
  1678. \fBGIT_REFLOG_ACTION\fR
  1679. .RS 4
  1680. When a ref is updated, reflog entries are created to keep track of the reason why the ref was updated (which is typically the name of the high\-level command that updated the ref), in addition to the old and new values of the ref\&. A scripted Porcelain command can use set_reflog_action helper function in
  1681. \fBgit\-sh\-setup\fR
  1682. to set its name to this variable when it is invoked as the top level command by the end user, to be recorded in the body of the reflog\&.
  1683. .RE
  1684. .PP
  1685. \fBGIT_REF_PARANOIA\fR
  1686. .RS 4
  1687. If set to
  1688. \fB1\fR, include broken or badly named refs when iterating over lists of refs\&. In a normal, non\-corrupted repository, this does nothing\&. However, enabling it may help git to detect and abort some operations in the presence of broken refs\&. Git sets this variable automatically when performing destructive operations like
  1689. \fBgit-prune\fR(1)\&. You should not need to set it yourself unless you want to be paranoid about making sure an operation has touched every ref (e\&.g\&., because you are cloning a repository to make a backup)\&.
  1690. .RE
  1691. .PP
  1692. \fBGIT_ALLOW_PROTOCOL\fR
  1693. .RS 4
  1694. If set to a colon\-separated list of protocols, behave as if
  1695. \fBprotocol\&.allow\fR
  1696. is set to
  1697. \fBnever\fR, and each of the listed protocols has
  1698. \fBprotocol\&.<name>\&.allow\fR
  1699. set to
  1700. \fBalways\fR
  1701. (overriding any existing configuration)\&. In other words, any protocol not mentioned will be disallowed (i\&.e\&., this is a whitelist, not a blacklist)\&. See the description of
  1702. \fBprotocol\&.allow\fR
  1703. in
  1704. \fBgit-config\fR(1)
  1705. for more details\&.
  1706. .RE
  1707. .PP
  1708. \fBGIT_PROTOCOL_FROM_USER\fR
  1709. .RS 4
  1710. Set to 0 to prevent protocols used by fetch/push/clone which are configured to the
  1711. \fBuser\fR
  1712. state\&. This is useful to restrict recursive submodule initialization from an untrusted repository or for programs which feed potentially\-untrusted URLS to git commands\&. See
  1713. \fBgit-config\fR(1)
  1714. for more details\&.
  1715. .RE
  1716. .PP
  1717. \fBGIT_PROTOCOL\fR
  1718. .RS 4
  1719. For internal use only\&. Used in handshaking the wire protocol\&. Contains a colon
  1720. \fI:\fR
  1721. separated list of keys with optional values
  1722. \fIkey[=value]\fR\&. Presence of unknown keys and values must be ignored\&.
  1723. .RE
  1724. .PP
  1725. \fBGIT_OPTIONAL_LOCKS\fR
  1726. .RS 4
  1727. If set to
  1728. \fB0\fR, Git will complete any requested operation without performing any optional sub\-operations that require taking a lock\&. For example, this will prevent
  1729. \fBgit status\fR
  1730. from refreshing the index as a side effect\&. This is useful for processes running in the background which do not want to cause lock contention with other operations on the repository\&. Defaults to
  1731. \fB1\fR\&.
  1732. .RE
  1733. .PP
  1734. \fBGIT_REDIRECT_STDIN\fR, \fBGIT_REDIRECT_STDOUT\fR, \fBGIT_REDIRECT_STDERR\fR
  1735. .RS 4
  1736. Windows\-only: allow redirecting the standard input/output/error handles to paths specified by the environment variables\&. This is particularly useful in multi\-threaded applications where the canonical way to pass standard handles via
  1737. \fBCreateProcess()\fR
  1738. is not an option because it would require the handles to be marked inheritable (and consequently
  1739. \fBevery\fR
  1740. spawned process would inherit them, possibly blocking regular Git operations)\&. The primary intended use case is to use named pipes for communication (e\&.g\&.
  1741. \fB\e\e\&.\epipe\emy\-git\-stdin\-123\fR)\&.
  1742. .sp
  1743. Two special values are supported:
  1744. \fBoff\fR
  1745. will simply close the corresponding standard handle, and if
  1746. \fBGIT_REDIRECT_STDERR\fR
  1747. is
  1748. \fB2>&1\fR, standard error will be redirected to the same handle as standard output\&.
  1749. .RE
  1750. .PP
  1751. \fBGIT_PRINT_SHA1_ELLIPSIS\fR (deprecated)
  1752. .RS 4
  1753. If set to
  1754. \fByes\fR, print an ellipsis following an (abbreviated) SHA\-1 value\&. This affects indications of detached HEADs (\fBgit-checkout\fR(1)) and the raw diff output (\fBgit-diff\fR(1))\&. Printing an ellipsis in the cases mentioned is no longer considered adequate and support for it is likely to be removed in the foreseeable future (along with the variable)\&.
  1755. .RE
  1756. .SH "DISCUSSION"
  1757. .sp
  1758. More detail on the following is available from the \m[blue]\fBGit concepts chapter of the user\-manual\fR\m[]\&\s-2\u[3]\d\s+2 and \fBgitcore-tutorial\fR(7)\&.
  1759. .sp
  1760. A Git project normally consists of a working directory with a "\&.git" subdirectory at the top level\&. The \&.git directory contains, among other things, a compressed object database representing the complete history of the project, an "index" file which links that history to the current contents of the working tree, and named pointers into that history such as tags and branch heads\&.
  1761. .sp
  1762. The object database contains objects of three main types: blobs, which hold file data; trees, which point to blobs and other trees to build up directory hierarchies; and commits, which each reference a single tree and some number of parent commits\&.
  1763. .sp
  1764. The commit, equivalent to what other systems call a "changeset" or "version", represents a step in the project\(cqs history, and each parent represents an immediately preceding step\&. Commits with more than one parent represent merges of independent lines of development\&.
  1765. .sp
  1766. All objects are named by the SHA\-1 hash of their contents, normally written as a string of 40 hex digits\&. Such names are globally unique\&. The entire history leading up to a commit can be vouched for by signing just that commit\&. A fourth object type, the tag, is provided for this purpose\&.
  1767. .sp
  1768. When first created, objects are stored in individual files, but for efficiency may later be compressed together into "pack files"\&.
  1769. .sp
  1770. Named pointers called refs mark interesting points in history\&. A ref may contain the SHA\-1 name of an object or the name of another ref\&. Refs with names beginning \fBref/head/\fR contain the SHA\-1 name of the most recent commit (or "head") of a branch under development\&. SHA\-1 names of tags of interest are stored under \fBref/tags/\fR\&. A special ref named \fBHEAD\fR contains the name of the currently checked\-out branch\&.
  1771. .sp
  1772. The index file is initialized with a list of all paths and, for each path, a blob object and a set of attributes\&. The blob object represents the contents of the file as of the head of the current branch\&. The attributes (last modified time, size, etc\&.) are taken from the corresponding file in the working tree\&. Subsequent changes to the working tree can be found by comparing these attributes\&. The index may be updated with new content, and new commits may be created from the content stored in the index\&.
  1773. .sp
  1774. The index is also capable of storing multiple entries (called "stages") for a given pathname\&. These stages are used to hold the various unmerged version of a file when a merge is in progress\&.
  1775. .SH "FURTHER DOCUMENTATION"
  1776. .sp
  1777. See the references in the "description" section to get started using Git\&. The following is probably more detail than necessary for a first\-time user\&.
  1778. .sp
  1779. The \m[blue]\fBGit concepts chapter of the user\-manual\fR\m[]\&\s-2\u[3]\d\s+2 and \fBgitcore-tutorial\fR(7) both provide introductions to the underlying Git architecture\&.
  1780. .sp
  1781. See \fBgitworkflows\fR(7) for an overview of recommended workflows\&.
  1782. .sp
  1783. See also the \m[blue]\fBhowto\fR\m[]\&\s-2\u[4]\d\s+2 documents for some useful examples\&.
  1784. .sp
  1785. The internals are documented in the \m[blue]\fBGit API documentation\fR\m[]\&\s-2\u[5]\d\s+2\&.
  1786. .sp
  1787. Users migrating from CVS may also want to read \fBgitcvs-migration\fR(7)\&.
  1788. .SH "AUTHORS"
  1789. .sp
  1790. Git was started by Linus Torvalds, and is currently maintained by Junio C Hamano\&. Numerous contributions have come from the Git mailing list <\m[blue]\fBgit@vger\&.kernel\&.org\fR\m[]\&\s-2\u[6]\d\s+2>\&. \m[blue]\fBhttp://www\&.openhub\&.net/p/git/contributors/summary\fR\m[] gives you a more complete list of contributors\&.
  1791. .sp
  1792. If you have a clone of git\&.git itself, the output of \fBgit-shortlog\fR(1) and \fBgit-blame\fR(1) can show you the authors for specific parts of the project\&.
  1793. .SH "REPORTING BUGS"
  1794. .sp
  1795. Report bugs to the Git mailing list <\m[blue]\fBgit@vger\&.kernel\&.org\fR\m[]\&\s-2\u[6]\d\s+2> where the development and maintenance is primarily done\&. You do not have to be subscribed to the list to send a message there\&. See the list archive at \m[blue]\fBhttps://lore\&.kernel\&.org/git\fR\m[] for previous bug reports and other discussions\&.
  1796. .sp
  1797. Issues which are security relevant should be disclosed privately to the Git Security mailing list <\m[blue]\fBgit\-security@googlegroups\&.com\fR\m[]\&\s-2\u[7]\d\s+2>\&.
  1798. .SH "SEE ALSO"
  1799. .sp
  1800. \fBgittutorial\fR(7), \fBgittutorial-2\fR(7), \fBgiteveryday\fR(7), \fBgitcvs-migration\fR(7), \fBgitglossary\fR(7), \fBgitcore-tutorial\fR(7), \fBgitcli\fR(7), \m[blue]\fBThe Git User\(cqs Manual\fR\m[]\&\s-2\u[1]\d\s+2, \fBgitworkflows\fR(7)
  1801. .SH "GIT"
  1802. .sp
  1803. Part of the \fBgit\fR(1) suite
  1804. .SH "NOTES"
  1805. .IP " 1." 4
  1806. Git User\(cqs Manual
  1807. .RS 4
  1808. \%file:///usr/share/doc/git/html/user-manual.html
  1809. .RE
  1810. .IP " 2." 4
  1811. Trace2 documentation
  1812. .RS 4
  1813. \%file:///usr/share/doc/git/html/technical/api-trace2.html
  1814. .RE
  1815. .IP " 3." 4
  1816. Git concepts chapter of the user-manual
  1817. .RS 4
  1818. \%file:///usr/share/doc/git/html/user-manual.html#git-concepts
  1819. .RE
  1820. .IP " 4." 4
  1821. howto
  1822. .RS 4
  1823. \%file:///usr/share/doc/git/html/howto-index.html
  1824. .RE
  1825. .IP " 5." 4
  1826. Git API documentation
  1827. .RS 4
  1828. \%file:///usr/share/doc/git/html/technical/api-index.html
  1829. .RE
  1830. .IP " 6." 4
  1831. git@vger.kernel.org
  1832. .RS 4
  1833. \%mailto:git@vger.kernel.org
  1834. .RE
  1835. .IP " 7." 4
  1836. git-security@googlegroups.com
  1837. .RS 4
  1838. \%mailto:git-security@googlegroups.com
  1839. .RE