Options Flashcards Preview

Git Commands > Options > Flashcards

Flashcards in Options Deck (26)
Loading flashcards...
1
What does the following Git option do?

--version

Prints the git suite version that the git program came from.

2
What does the following Git option do?

--help

Prints the synopsis and a list of the most commonly used commands. If the option --all or -a 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.

3
What does the following Git option do?

-c =

Pass a configuration parameter to the command. The value given will override values from configuration files. The is expected in the same format as listed by git config (subkeys separated by dots).

4
What does the following Git option do?

--exec-path[=]

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, git will print the current setting and then exit.

5
What does the following Git option do?

--html-path

Print the path, without trailing slash, where git’s HTML documentation is installed and exit.

6
What does the following Git option do?

--man-path

Print the manpath (see man(1)) for the man pages for this version of git and exit.

7
What does the following Git option do?

--info-path

Print the path where the Info files documenting this version of git are installed and exit.

8
What does the following Git option do?

--paginate

Pipe all output into less (or if set, $PAGER) if standard output is a terminal. This overrides the pager. configuration options (see the "Configuration Mechanism" section below).

9
What does the following Git option do?

--no-pager

Do not pipe git output into a pager.

10
What does the following Git option do?

--git-dir=

Set the path to the repository. This can also be controlled by setting the GIT_DIR environment variable. It can be an absolute path or relative path to current working directory.

11
What does the following Git option do?

--work-tree=

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 git-config(1) for a more detailed discussion).

12
What does the following Git option do?

--bare

Treat the repository as a bare repository. If GIT_DIR environment is not set, it is set to the current working directory.

13
What does the following Git option do?

--no-replace-objects

Do not use replacement refs to replace git objects. See git-replace(1) for more information.

14
Name the Git option that does the following:

Prints the git suite version that the git program came from.

--version

15
Name the Git option that does the following:

Prints the synopsis and a list of the most commonly used commands. If the option --all or -a 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.

--help

16
Name the Git option that does the following:

Pass a configuration parameter to the command. The value given will override values from configuration files. The is expected in the same format as listed by git config (subkeys separated by dots).

-c =

17
Name the Git option that does the following:

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, git will print the current setting and then exit.

--exec-path[=]

18
Name the Git option that does the following:

Print the path, without trailing slash, where git’s HTML documentation is installed and exit.

--html-path

19
Name the Git option that does the following:

Print the manpath (see man(1)) for the man pages for this version of git and exit.

--man-path

20
Name the Git option that does the following:

Print the path where the Info files documenting this version of git are installed and exit.

--info-path

21
Name the Git option that does the following:

Pipe all output into less (or if set, $PAGER) if standard output is a terminal. This overrides the pager. configuration options (see the "Configuration Mechanism" section below).

--paginate

22
Name the Git option that does the following:

Do not pipe git output into a pager.

--no-pager

23
Name the Git option that does the following:

Set the path to the repository. This can also be controlled by setting the GIT_DIR environment variable. It can be an absolute path or relative path to current working directory.

--git-dir=

24
Name the Git option that does the following:

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 git-config(1) for a more detailed discussion).

--work-tree=

25
Name the Git option that does the following:

Treat the repository as a bare repository. If GIT_DIR environment is not set, it is set to the current working directory.

--bare

26
Name the Git option that does the following:

Do not use replacement refs to replace git objects. See git-replace(1) for more information.

--no-replace-objects