High-Level (Porcelain) Commands Flashcards

Memorize high-level Git commands so you'll never have to look them up again.

1
Q

What does the following Git command do?

git-add(1)

A

Add file contents 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-am(1)

A

Apply a series of patches from a mailbox.

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-archive(1)

A

Create an archive of files from a named tree.

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-bisect(1)

A

Find by binary search the change that introduced a bug.

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-branch(1)

A

List, create, or delete branches.

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-bundle(1)

A

Move objects and refs by archive.

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-checkout(1)

A

Checkout a branch or paths to the working tree.

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-cherry-pick(1)

A

Apply the changes introduced by some existing commits.

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-citool(1)

A

Graphical alternative to git-commit.

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-clean(1)

A

Remove untracked files from the working tree.

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-clone(1)

A

Clone a repository into a new directory.

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-commit(1)

A

Record changes to the repository.

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-describe(1)

A

Show the most recent tag that is reachable from a commit.

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-diff(1)

A

Show changes between commits, commit and working tree, etc.

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-fetch(1)

A

Download objects and refs from another repository.

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-format-patch(1)

A

Prepare patches for e-mail submission.

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-gc(1)

A

Cleanup unnecessary files and optimize the local repository.

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-grep(1)

A

Print lines matching a pattern.

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-gui(1)

A

A portable graphical interface to Git.

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-init(1)

A

Create an empty git repository or reinitialize an existing one.

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:

Add file contents to the index.

A

git-add(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:

Apply a series of patches from a mailbox.

A

git-am(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 an archive of files from a named tree.

A

git-archive(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:

Find by binary search the change that introduced a bug.

A

git-bisect(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:

List, create, or delete branches.

A

git-branch(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:

Move objects and refs by archive.

A

git-bundle(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:

Checkout a branch or paths to the working tree.

A

git-checkout(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:

Apply the changes introduced by some existing commits.

A

git-cherry-pick(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:

Graphical alternative to git-commit.

A

git-citool(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:

Remove untracked files from the working tree.

A

git-clean(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:

Clone a repository into a new directory.

A

git-clone(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:

Record changes to the repository.

A

git-commit(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:

Show the most recent tag that is reachable from a commit.

A

git-describe(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:

Show changes between commits, commit and working tree, etc.

A

git-diff(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:

Download objects and refs from another repository.

A

git-fetch(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:

Prepare patches for e-mail submission.

A

git-format-patch(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:

Cleanup unnecessary files and optimize the local repository.

A

git-gc(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:

Print lines matching a pattern.

A

git-grep(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:

A portable graphical interface to Git.

A

git-gui(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:

Create an empty git repository or reinitialize an existing one.

A

git-init(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-log(1)

A

Show commit logs.

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-merge(1)

A

Join two or more development histories together.

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-mv(1)

A

Move or rename a file, a directory, or a symlink.

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-notes(1)

A

Add or inspect object notes.

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-pull(1)

A

Fetch from and merge with another repository or a local branch.

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-push(1)

A

Update remote refs along with associated objects.

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

What does the following Git command do?

git-rebase(1)

A

Forward-port local commits to the updated upstream head.

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

What does the following Git command do?

git-reset(1)

A

Reset current HEAD to the specified state.

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

What does the following Git command do?

git-revert(1)

A

Revert some existing commits.

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

What does the following Git command do?

git-rm(1)

A

Remove files from the working tree and from the index.

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

What does the following Git command do?

git-shortlog(1)

A

Summarize git log output.

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

What does the following Git command do?

git-show(1)

A

Show various types of objects.

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

What does the following Git command do?

git-stash(1)

A

Stash the changes in a dirty working directory away.

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

What does the following Git command do?

git-status(1)

A

Show the working tree status.

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

What does the following Git command do?

git-submodule(1)

A

Initialize, update or inspect submodules.

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

What does the following Git command do?

git-tag(1)

A

Create, list, delete or verify a tag object signed with GPG.

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

What does the following Git command do?

gitk(1)

A

The git repository browser.

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

What does the following Git command do?

git-config(1)

A

Get and set repository or global options.

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

What does the following Git command do?

git-fast-export(1)

A

Git data exporter.

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

What does the following Git command do?

git-fast-import(1)

A

Backend for fast Git data importers.

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

Name the Git command that does the following:

Show commit logs.

A

git-log(1)

62
Q

Name the Git command that does the following:

Join two or more development histories together.

A

git-merge(1)

63
Q

Name the Git command that does the following:

Move or rename a file, a directory, or a symlink.

A

git-mv(1)

64
Q

Name the Git command that does the following:

Add or inspect object notes.

A

git-notes(1)

65
Q

Name the Git command that does the following:

Fetch from and merge with another repository or a local branch.

A

git-pull(1)

66
Q

Name the Git command that does the following:

Update remote refs along with associated objects.

A

git-push(1)

67
Q

Name the Git command that does the following:

Forward-port local commits to the updated upstream head.

A

git-rebase(1)

68
Q

Name the Git command that does the following:

Reset current HEAD to the specified state.

A

git-reset(1)

69
Q

Name the Git command that does the following:

Revert some existing commits.

A

git-revert(1)

70
Q

Name the Git command that does the following:

Remove files from the working tree and from the index.

A

git-rm(1)

71
Q

Name the Git command that does the following:

Summarize git log output.

A

git-shortlog(1)

72
Q

Name the Git command that does the following:

Show various types of objects.

A

git-show(1)

73
Q

Name the Git command that does the following:

Stash the changes in a dirty working directory away.

A

git-stash(1)

74
Q

Name the Git command that does the following:

Show the working tree status.

A

git-status(1)

75
Q

Name the Git command that does the following:

Initialize, update or inspect submodules.

A

git-submodule(1)

76
Q

Name the Git command that does the following:

Create, list, delete or verify a tag object signed with GPG.

A

git-tag(1)

77
Q

Name the Git command that does the following:

The git repository browser.

A

gitk(1)

78
Q

Name the Git command that does the following:

Get and set repository or global options.

A

git-config(1)

79
Q

Name the Git command that does the following:

Git data exporter.

A

git-fast-export(1)

80
Q

Name the Git command that does the following:

Backend for fast Git data importers.

A

git-fast-import(1)

81
Q

What does the following Git command do?

git-filter-branch(1)

A

Rewrite branches.

82
Q

What does the following Git command do?

git-lost-found(1)

A

(deprecated) Recover lost refs that luckily have not yet been pruned.

83
Q

What does the following Git command do?

git-mergetool(1)

A

Run merge conflict resolution tools to resolve merge conflicts.

84
Q

What does the following Git command do?

git-pack-refs(1)

A

Pack heads and tags for efficient repository access.

85
Q

What does the following Git command do?

git-prune(1)

A

Prune all unreachable objects from the object database.

86
Q

What does the following Git command do?

git-reflog(1)

A

Manage reflog information.

87
Q

What does the following Git command do?

git-relink(1)

A

Hardlink common objects in local repositories.

88
Q

What does the following Git command do?

git-remote(1)

A

manage set of tracked repositories.

89
Q

What does the following Git command do?

git-repack(1)

A

Pack unpacked objects in a repository.

90
Q

What does the following Git command do?

git-replace(1)

A

Create, list, delete refs to replace objects.

91
Q

What does the following Git command do?

git-repo-config(1)

A

(deprecated) Get and set repository or global options.

92
Q

What does the following Git command do?

git-annotate(1)

A

Annotate file lines with commit information.

93
Q

What does the following Git command do?

git-blame(1)

A

Show what revision and author last modified each line of a file.

94
Q

What does the following Git command do?

git-cherry(1)

A

Find commits not merged upstream.

95
Q

What does the following Git command do?

git-count-objects(1)

A

Count unpacked number of objects and their disk consumption.

96
Q

What does the following Git command do?

git-difftool(1)

A

Show changes using common diff tools.

97
Q

What does the following Git command do?

git-fsck(1)

A

Verifies the connectivity and validity of the objects in the database.

98
Q

What does the following Git command do?

git-get-tar-commit-id(1)

A

Extract commit ID from an archive created using git-archive.

99
Q

What does the following Git command do?

git-help(1)

A

display help information about git.

100
Q

What does the following Git command do?

git-instaweb(1)

A

Instantly browse your working repository in gitweb.

101
Q

Name the Git command that does the following:

Rewrite branches.

A

git-filter-branch(1)

102
Q

Name the Git command that does the following:

(deprecated) Recover lost refs that luckily have not yet been pruned.

A

git-lost-found(1)

103
Q

Name the Git command that does the following:

Run merge conflict resolution tools to resolve merge conflicts.

A

git-mergetool(1)

104
Q

Name the Git command that does the following:

Pack heads and tags for efficient repository access.

A

git-pack-refs(1)

105
Q

Name the Git command that does the following:

Prune all unreachable objects from the object database.

A

git-prune(1)

106
Q

Name the Git command that does the following:

Manage reflog information.

A

git-reflog(1)

107
Q

Name the Git command that does the following:

Hardlink common objects in local repositories.

A

git-relink(1)

108
Q

Name the Git command that does the following:

manage set of tracked repositories.

A

git-remote(1)

109
Q

Name the Git command that does the following:

Pack unpacked objects in a repository.

A

git-repack(1)

110
Q

Name the Git command that does the following:

Create, list, delete refs to replace objects.

A

git-replace(1)

111
Q

Name the Git command that does the following:

(deprecated) Get and set repository or global options.

A

git-repo-config(1)

112
Q

Name the Git command that does the following:

Annotate file lines with commit information.

A

git-annotate(1)

113
Q

Name the Git command that does the following:

Show what revision and author last modified each line of a file.

A

git-blame(1)

114
Q

Name the Git command that does the following:

Find commits not merged upstream.

A

git-cherry(1)

115
Q

Name the Git command that does the following:

Count unpacked number of objects and their disk consumption.

A

git-count-objects(1)

116
Q

Name the Git command that does the following:

Show changes using common diff tools.

A

git-difftool(1)

117
Q

Name the Git command that does the following:

Verifies the connectivity and validity of the objects in the database.

A

git-fsck(1)

118
Q

Name the Git command that does the following:

Extract commit ID from an archive created using git-archive.

A

git-get-tar-commit-id(1)

119
Q

Name the Git command that does the following:

display help information about git.

A

git-help(1)

120
Q

Name the Git command that does the following:

Instantly browse your working repository in gitweb.

A

git-instaweb(1)

121
Q

What does the following Git command do?

git-merge-tree(1)

A

Show three-way merge without touching index.

122
Q

What does the following Git command do?

git-rerere(1)

A

Reuse recorded resolution of conflicted merges.

123
Q

What does the following Git command do?

git-rev-parse(1)

A

Pick out and massage parameters.

124
Q

What does the following Git command do?

git-show-branch(1)

A

Show branches and their commits.

125
Q

What does the following Git command do?

git-verify-tag(1)

A

Check the GPG signature of tags.

126
Q

What does the following Git command do?

git-whatchanged(1)

A

Show logs with difference each commit introduces.

127
Q

What does the following Git command do?

git-archimport(1)

A

Import an Arch repository into git.

128
Q

What does the following Git command do?

git-cvsexportcommit(1)

A

Export a single commit to a CVS checkout.

129
Q

What does the following Git command do?

git-cvsimport(1)

A

Salvage your data out of another SCM people love to hate.

130
Q

What does the following Git command do?

git-cvsserver(1)

A

A CVS server emulator for git.

131
Q

What does the following Git command do?

git-imap-send(1)

A

Send a collection of patches from stdin to an IMAP folder.

132
Q

What does the following Git command do?

git-quiltimport(1)

A

Applies a quilt patchset onto the current branch.

133
Q

What does the following Git command do?

git-request-pull(1)

A

Generates a summary of pending changes.

134
Q

What does the following Git command do?

git-send-email(1)

A

Send a collection of patches as emails.

135
Q

What does the following Git command do?

git-svn(1)

A

Bidirectional operation between a Subversion repository and git.

136
Q

Name the Git command that does the following:

Show three-way merge without touching index.

A

git-merge-tree(1)

137
Q

Name the Git command that does the following:

Reuse recorded resolution of conflicted merges.

A

git-rerere(1)

138
Q

Name the Git command that does the following:

Pick out and massage parameters.

A

git-rev-parse(1)

139
Q

Name the Git command that does the following:

Show branches and their commits.

A

git-show-branch(1)

140
Q

Name the Git command that does the following:

Check the GPG signature of tags.

A

git-verify-tag(1)

141
Q

Name the Git command that does the following:

Show logs with difference each commit introduces.

A

git-whatchanged(1)

142
Q

Name the Git command that does the following:

Import an Arch repository into git.

A

git-archimport(1)

143
Q

Name the Git command that does the following:

Export a single commit to a CVS checkout.

A

git-cvsexportcommit(1)

144
Q

Name the Git command that does the following:

Salvage your data out of another SCM people love to hate.

A

git-cvsimport(1)

145
Q

Name the Git command that does the following:

A CVS server emulator for git.

A

git-cvsserver(1)

146
Q

Name the Git command that does the following:

Send a collection of patches from stdin to an IMAP folder.

A

git-imap-send(1)

147
Q

Name the Git command that does the following:

Applies a quilt patchset onto the current branch.

A

git-quiltimport(1)

148
Q

Name the Git command that does the following:

Generates a summary of pending changes.

A

git-request-pull(1)

149
Q

Name the Git command that does the following:

Send a collection of patches as emails.

A

git-send-email(1)

150
Q

Name the Git command that does the following:

Bidirectional operation between a Subversion repository and git.

A

git-svn(1)