Options Flashcards

Memorize the syntax for options that can be combined with various types of commands.

1
Q

What does the following Git option do?

–version

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the following Git option do?

–help

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the following Git option do?

-c =

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the following Git option do?

–exec-path[=]

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the following Git option do?

–html-path

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the following Git option do?

–man-path

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the following Git option do?

–info-path

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the following Git option do?

–paginate

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the following Git option do?

–no-pager

A

Do not pipe git output into a pager.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the following Git option do?

–git-dir=

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the following Git option do?

–work-tree=

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the following Git option do?

–bare

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the following Git option do?

–no-replace-objects

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Name the Git option that does the following:

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

A

–version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

–help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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).

A

-c =

17
Q

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.

A

–exec-path[=]

18
Q

Name the Git option that does the following:

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

A

–html-path

19
Q

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.

A

–man-path

20
Q

Name the Git option that does the following:

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

A

–info-path

21
Q

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).

A

–paginate

22
Q

Name the Git option that does the following:

Do not pipe git output into a pager.

A

–no-pager

23
Q

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.

A

–git-dir=

24
Q

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).

A

–work-tree=

25
Q

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.

A

–bare

26
Q

Name the Git option that does the following:

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

A

–no-replace-objects