Low-Level Commands (Plumbing) Flashcards

Git contains a full library of low-level commands that are generally more stable than porcelain-level commands, since these commands are primarily for scripted use. This deck will help you internalize these low-level commands so you never have to look them up again.

1
Q

What does the following Git command do?

git-apply(1)

A

Apply a patch to files and/or to the index.

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

What does the following Git command do?

git-checkout-index(1)

A

Copy files from the index to the working tree.

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

What does the following Git command do?

git-commit-tree(1)

A

Create a new commit object.

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

What does the following Git command do?

git-hash-object(1)

A

Compute object ID and optionally creates a blob from a file.

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

What does the following Git command do?

git-index-pack(1)

A

Build pack index file for an existing packed archive.

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

What does the following Git command do?

git-merge-file(1)

A

Run a three-way file merge.

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

What does the following Git command do?

git-merge-index(1)

A

Run a merge for files needing merging.

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

What does the following Git command do?

git-mktag(1)

A

Creates a tag object.

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

What does the following Git command do?

git-mktree(1)

A

Build a tree-object from ls-tree formatted text.

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

What does the following Git command do?

git-pack-objects(1)

A

Create a packed archive of objects.

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

What does the following Git command do?

git-prune-packed(1)

A

Remove extra objects that are already in pack files.

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

What does the following Git command do?

git-read-tree(1)

A

Reads tree information into the index.

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

What does the following Git command do?

git-symbolic-ref(1)

A

Read and modify symbolic refs.

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

What does the following Git command do?

git-unpack-objects(1)

A

Unpack objects from a packed archive.

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

What does the following Git command do?

git-update-index(1)

A

Register file contents in the working tree to the index.

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

What does the following Git command do?

git-update-ref(1)

A

Update the object name stored in a ref safely.

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

What does the following Git command do?

git-write-tree(1)

A

Create a tree object from the current index.

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

What does the following Git command do?

git-cat-file(1)

A

Provide content or type and size information for repository objects.

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

What does the following Git command do?

git-diff-files(1)

A

Compares files in the working tree and the index.

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

What does the following Git command do?

git-diff-index(1)

A

Compares content and mode of blobs between the index and repository.

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

Name the Git command that does the following:

Apply a patch to files and/or to the index.

A

git-apply(1)

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

Name the Git command that does the following:

Copy files from the index to the working tree.

A

git-checkout-index(1)

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

Name the Git command that does the following:

Create a new commit object.

A

git-commit-tree(1)

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

Name the Git command that does the following:

Compute object ID and optionally creates a blob from a file.

A

git-hash-object(1)

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

Name the Git command that does the following:

Build pack index file for an existing packed archive.

A

git-index-pack(1)

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

Name the Git command that does the following:

Run a three-way file merge.

A

git-merge-file(1)

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

Name the Git command that does the following:

Run a merge for files needing merging.

A

git-merge-index(1)

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

Name the Git command that does the following:

Creates a tag object.

A

git-mktag(1)

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

Name the Git command that does the following:

Build a tree-object from ls-tree formatted text.

A

git-mktree(1)

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

Name the Git command that does the following:

Create a packed archive of objects.

A

git-pack-objects(1)

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

Name the Git command that does the following:

Remove extra objects that are already in pack files.

A

git-prune-packed(1)

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

Name the Git command that does the following:

Reads tree information into the index.

A

git-read-tree(1)

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

Name the Git command that does the following:

Read and modify symbolic refs.

A

git-symbolic-ref(1)

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

Name the Git command that does the following:

Unpack objects from a packed archive.

A

git-unpack-objects(1)

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

Name the Git command that does the following:

Register file contents in the working tree to the index.

A

git-update-index(1)

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

Name the Git command that does the following:

Update the object name stored in a ref safely.

A

git-update-ref(1)

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

Name the Git command that does the following:

Create a tree object from the current index.

A

git-write-tree(1)

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

Name the Git command that does the following:

Provide content or type and size information for repository objects.

A

git-cat-file(1)

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

Name the Git command that does the following:

Compares files in the working tree and the index.

A

git-diff-files(1)

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

Name the Git command that does the following:

Compares content and mode of blobs between the index and repository.

A

git-diff-index(1)

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

What does the following Git command do?

git-diff-tree(1)

A

Compares the content and mode of blobs found via two tree objects.

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

What does the following Git command do?

git-for-each-ref(1)

A

Output information on each ref.

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

What does the following Git command do?

git-ls-files(1)

A

Show information about files in the index and the working tree.

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

What does the following Git command do?

git-ls-remote(1)

A

List references in a remote repository.

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

What does the following Git command do?

git-ls-tree(1)

A

List the contents of a tree object.

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

What does the following Git command do?

git-merge-base(1)

A

Find as good common ancestors as possible for a merge.

47
Q

What does the following Git command do?

git-name-rev(1)

A

Find symbolic names for given revs.

48
Q

What does the following Git command do?

git-pack-redundant(1)

A

Find redundant pack files.

49
Q

What does the following Git command do?

git-rev-list(1)

A

Lists commit objects in reverse chronological order.

50
Q

What does the following Git command do?

git-show-index(1)

A

Show packed archive index.

51
Q

What does the following Git command do?

git-show-ref(1)

A

List references in a local repository.

52
Q

What does the following Git command do?

git-tar-tree(1)

A

(deprecated) Create a tar archive of the files in the named tree object.

53
Q

What does the following Git command do?

git-unpack-file(1)

A

Creates a temporary file with a blob’s contents.

54
Q

What does the following Git command do?

git-var(1)

A

Show a git logical variable.

55
Q

What does the following Git command do?

git-verify-pack(1)

A

Validate packed git archive files.

56
Q

What does the following Git command do?

git-daemon(1)

A

A really simple server for git repositories.

57
Q

What does the following Git command do?

git-fetch-pack(1)

A

Receive missing objects from another repository.

58
Q

What does the following Git command do?

git-http-backend(1)

A

Server side implementation of Git over HTTP.

59
Q

What does the following Git command do?

git-send-pack(1)

A

Push objects over git protocol to another repository.

60
Q

What does the following Git command do?

git-update-server-info(1)

A

Update auxiliary info file to help dumb servers.

61
Q

Name the Git command that does the following:

Compares the content and mode of blobs found via two tree objects.

A

git-diff-tree(1)

62
Q

Name the Git command that does the following:

Output information on each ref.

A

git-for-each-ref(1)

63
Q

Name the Git command that does the following:

Show information about files in the index and the working tree.

A

git-ls-files(1)

64
Q

Name the Git command that does the following:

List references in a remote repository.

A

git-ls-remote(1)

65
Q

Name the Git command that does the following:

List the contents of a tree object.

A

git-ls-tree(1)

66
Q

Name the Git command that does the following:

Find as good common ancestors as possible for a merge.

A

git-merge-base(1)

67
Q

Name the Git command that does the following:

Find symbolic names for given revs.

A

git-name-rev(1)

68
Q

Name the Git command that does the following:

Find redundant pack files.

A

git-pack-redundant(1)

69
Q

Name the Git command that does the following:

Lists commit objects in reverse chronological order.

A

git-rev-list(1)

70
Q

Name the Git command that does the following:

Show packed archive index.

A

git-show-index(1)

71
Q

Name the Git command that does the following:

List references in a local repository.

A

git-show-ref(1)

72
Q

Name the Git command that does the following:

(deprecated) Create a tar archive of the files in the named tree object.

A

git-tar-tree(1)

73
Q

Name the Git command that does the following:

Creates a temporary file with a blob’s contents.

A

git-unpack-file(1)

74
Q

Name the Git command that does the following:

Show a git logical variable.

A

git-var(1)

75
Q

Name the Git command that does the following:

Validate packed git archive files.

A

git-verify-pack(1)

76
Q

Name the Git command that does the following:

A really simple server for git repositories.

A

git-daemon(1)

77
Q

Name the Git command that does the following:

Receive missing objects from another repository.

A

git-fetch-pack(1)

78
Q

Name the Git command that does the following:

Server side implementation of Git over HTTP.

A

git-http-backend(1)

79
Q

Name the Git command that does the following:

Push objects over git protocol to another repository.

A

git-send-pack(1)

80
Q

Name the Git command that does the following:

Update auxiliary info file to help dumb servers.

A

git-update-server-info(1)

81
Q

What does the following Git command do?

git-http-fetch(1)

A

Download from a remote git repository via HTTP.

82
Q

What does the following Git command do?

git-http-push(1)

A

Push objects over HTTP/DAV to another repository.

83
Q

What does the following Git command do?

git-parse-remote(1)

A

Routines to help parsing remote repository access parameters.

84
Q

What does the following Git command do?

git-receive-pack(1)

A

Receive what is pushed into the repository.

85
Q

What does the following Git command do?

git-shell(1)

A

Restricted login shell for Git-only SSH access.

86
Q

What does the following Git command do?

git-upload-archive(1)

A

Send archive back to git-archive.

87
Q

What does the following Git command do?

git-upload-pack(1)

A

Send objects packed back to git-fetch-pack.

88
Q

What does the following Git command do?

git-check-attr(1)

A

Display gitattributes information.

89
Q

What does the following Git command do?

git-check-ref-format(1)

A

Ensures that a reference name is well formed.

90
Q

What does the following Git command do?

git-fmt-merge-msg(1)

A

Produce a merge commit message.

91
Q

What does the following Git command do?

git-mailinfo(1)

A

Extracts patch and authorship from a single e-mail message.

92
Q

What does the following Git command do?

git-mailsplit(1)

A

Simple UNIX mbox splitter program.

93
Q

What does the following Git command do?

git-merge-one-file(1)

A

The standard helper program to use with git-merge-index.

94
Q

What does the following Git command do?

git-patch-id(1)

A

Compute unique ID for a patch.

95
Q

What does the following Git command do?

git-peek-remote(1)

A

(deprecated) List the references in a remote repository.

96
Q

What does the following Git command do?

git-sh-setup(1)

A

Common git shell script setup code.

97
Q

What does the following Git command do?

git-stripspace(1)

A

Filter out empty lines.

98
Q

Name the Git command that does the following:

Download from a remote git repository via HTTP.

A

git-http-fetch(1)

99
Q

Name the Git command that does the following:

Push objects over HTTP/DAV to another repository.

A

git-http-push(1)

100
Q

Name the Git command that does the following:

Routines to help parsing remote repository access parameters.

A

git-parse-remote(1)

101
Q

Name the Git command that does the following:

Receive what is pushed into the repository.

A

git-receive-pack(1)

102
Q

Name the Git command that does the following:

Restricted login shell for Git-only SSH access.

A

git-shell(1)

103
Q

Name the Git command that does the following:

Send archive back to git-archive.

A

git-upload-archive(1)

104
Q

Name the Git command that does the following:

Send objects packed back to git-fetch-pack.

A

git-upload-pack(1)

105
Q

Name the Git command that does the following:

Display gitattributes information.

A

git-check-attr(1)

106
Q

Name the Git command that does the following:

Ensures that a reference name is well formed.

A

git-check-ref-format(1)

107
Q

Name the Git command that does the following:

Produce a merge commit message.

A

git-fmt-merge-msg(1)

108
Q

Name the Git command that does the following:

Extracts patch and authorship from a single e-mail message.

A

git-mailinfo(1)

109
Q

Name the Git command that does the following:

Simple UNIX mbox splitter program.

A

git-mailsplit(1)

110
Q

Name the Git command that does the following:

The standard helper program to use with git-merge-index.

A

git-merge-one-file(1)

111
Q

Name the Git command that does the following:

Compute unique ID for a patch.

A

git-patch-id(1)

112
Q

Name the Git command that does the following:

(deprecated) List the references in a remote repository.

A

git-peek-remote(1)

113
Q

Name the Git command that does the following:

Common git shell script setup code.

A

git-sh-setup(1)

114
Q

Name the Git command that does the following:

Filter out empty lines.

A

git-stripspace(1)