]>
Commit | Line | Data |
---|---|---|
aed022ab | 1 | git-var(1) |
71931c19 | 2 | ========== |
aed022ab EB |
3 | |
4 | NAME | |
5 | ---- | |
2de9b711 | 6 | git-var - Show a Git logical variable |
aed022ab EB |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
7791a1d9 | 11 | [verse] |
9fabb6d7 | 12 | 'git var' ( -l | <variable> ) |
aed022ab EB |
13 | |
14 | DESCRIPTION | |
15 | ----------- | |
2de9b711 | 16 | Prints a Git logical variable. |
aed022ab | 17 | |
df8baa42 JF |
18 | OPTIONS |
19 | ------- | |
20 | -l:: | |
4ee6bc99 | 21 | Cause the logical variables to be listed. In addition, all the |
2de9b711 | 22 | variables of the Git configuration file .git/config are listed |
e1cbc46d | 23 | as well. (However, the configuration variables listing functionality |
ca768288 | 24 | is deprecated in favor of `git config -l`.) |
aed022ab | 25 | |
76a8788c | 26 | EXAMPLES |
aed022ab | 27 | -------- |
b1889c36 | 28 | $ git var GIT_AUTHOR_IDENT |
df8baa42 | 29 | Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 |
aed022ab EB |
30 | |
31 | ||
32 | VARIABLES | |
76a8788c | 33 | --------- |
df8baa42 | 34 | GIT_AUTHOR_IDENT:: |
aed022ab EB |
35 | The author of a piece of code. |
36 | ||
df8baa42 | 37 | GIT_COMMITTER_IDENT:: |
2de9b711 | 38 | The person who put a piece of code into Git. |
aed022ab | 39 | |
44fcb497 | 40 | GIT_EDITOR:: |
2de9b711 | 41 | Text editor for use by Git commands. The value is meant to be |
44fcb497 JN |
42 | interpreted by the shell when it is used. Examples: `~/bin/vi`, |
43 | `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe" | |
44 | --nofork`. The order of preference is the `$GIT_EDITOR` | |
45 | environment variable, then `core.editor` configuration, then | |
4e0ce4df JN |
46 | `$VISUAL`, then `$EDITOR`, and then the default chosen at compile |
47 | time, which is usually 'vi'. | |
5b58619a JN |
48 | ifdef::git-default-editor[] |
49 | The build you are using chose '{git-default-editor}' as the default. | |
50 | endif::git-default-editor[] | |
44fcb497 | 51 | |
63618245 | 52 | GIT_PAGER:: |
2de9b711 | 53 | Text viewer for use by Git commands (e.g., 'less'). The value |
63618245 JN |
54 | is meant to be interpreted by the shell. The order of preference |
55 | is the `$GIT_PAGER` environment variable, then `core.pager` | |
4e0ce4df JN |
56 | configuration, then `$PAGER`, and then the default chosen at |
57 | compile time (usually 'less'). | |
5b58619a JN |
58 | ifdef::git-default-pager[] |
59 | The build you are using chose '{git-default-pager}' as the default. | |
60 | endif::git-default-pager[] | |
63618245 | 61 | |
e06c9e1d TW |
62 | GIT_DEFAULT_BRANCH:: |
63 | The name of the first branch created in newly initialized repositories. | |
64 | ||
56ae8df5 | 65 | SEE ALSO |
aed022ab | 66 | -------- |
5162e697 DM |
67 | linkgit:git-commit-tree[1] |
68 | linkgit:git-tag[1] | |
69 | linkgit:git-config[1] | |
aed022ab | 70 | |
aed022ab EB |
71 | GIT |
72 | --- | |
9e1f0a85 | 73 | Part of the linkgit:git[1] suite |