-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.json
More file actions
177 lines (177 loc) · 5.06 KB
/
git.json
File metadata and controls
177 lines (177 loc) · 5.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"questions": [
{
"answers": [
"git add .",
"git commit",
"git init",
"git bash"
],
"correct": {
"index": 2
},
"number": 1,
"prompt": "Which of the following is the correct way to initialize a new Git repository?"
},
{
"answers": [
"git pull",
"git push",
"git commit",
"git fetch"
],
"correct": {
"index": 1
},
"number": 2,
"prompt": "Which git command do you use to upload local repository content to a remote repository?"
},
{
"answers": [
"git add .",
"git add my_awesome_script.py",
"git add new",
"git push my_awesome_script.py"
],
"correct": {
"index": 1,
"text": "git add . will work but the request was just for a single file."
},
"number": 3,
"prompt": "Which command would you use to stage a single file called called my_awesome_script.py so we can commit it?"
},
{
"answers": [
"git commit .",
"git commit \"Bugfix #1\"",
"git commit -m \"Bugfix #1\"",
"git push \"Bugfix #1\""
],
"correct": {
"index": 2
},
"number": 4,
"prompt": "How you create a new commit with the message \"Bugfix #1\"?"
},
{
"answers": [
"git checkout feature/bugfix",
"git checkout -b feature/bugfix",
"git branch -checkout feature/bugfix",
"git branch -c feature/bugfix"
],
"correct": {
"index": 1
},
"number": 5,
"prompt": "Which command will allow you create a branch called feature/bugfix and switch to that branch at the same time?"
},
{
"answers": [
"username and email address",
"username and password",
"email address and password",
"username and IP address"
],
"correct": {
"index": 0
},
"number": 6,
"prompt": "After you install Git and prior to issuing the first commit, which two configuration properties does the tool expect to be configured?"
},
{
"answers": [
"git branch",
"git status",
"git current"
],
"correct": {
"index": 2
},
"number": 7,
"prompt": "Which command is not used to determine what branch you are on?"
},
{
"answers": [
"git checkout -- oops.py",
"git rm --cached oops.py",
"git checkout --replace oops.py master",
"This feature does not exist."
],
"correct": {
"index": 0
},
"number": 8,
"prompt": "You made an unneccessary change to oops.py in your working directory. What command would discard the uncommitted changes to oops.py?"
},
{
"answers": [
"git fork https://github.com/user1/awesome_repo.git",
"git clone https://github.com/user1/awesome_repo.git",
"git commit https://github.com/user1/awesome_repo.git",
"git pull https://github.com/user1/awesome_repo.git"
],
"correct": {
"index": 1
},
"number": 9,
"prompt": "Which command will download https://github.com/user1/awesome_repo.git to your local computer?"
},
{
"answers": [
"git commit -m \"Get latest changes\"",
"git pull",
"git push",
"git merge"
],
"correct": {
"index": 1
},
"number": 10,
"prompt": "Which command will incorporate changes from a remote repository into the current branch?"
},
{
"answers": [
"git rm readme.MD",
"git rm --cached readme.MD",
"git rm -f readme.MD",
"Best way is just use explorer to move readme.MD to another directory, do a commit, and then move the file back."
],
"correct": {
"index": 1,
"text": "git rm -f will delete the file from the staging area and the disk. git rm --cached keeps the file on teh disk but removes from staging."
},
"number": 11,
"prompt": "You have done git add readme.MD. You would like to remove the file from the staging area but still keep it on disk. Which command do you use?"
},
{
"answers": [
"git push remote --tags",
"git merge bugfix1 bugfix2",
"git diff bugfix1 bugfix2",
"git diff master bugfix1"
],
"correct": {
"index": 2
},
"number": 12,
"prompt": "Which command will compare bugfix1 and bugfix2?"
},
{
"answers": [
"git automatically resolves conflicts",
"edit the affected files, run git add, and then do a git commit",
"run git add, and then do a git commit",
"edit the affected files, and then do a git commit"
],
"correct": {
"index": 1,
"text": "https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-using-the-command-line"
},
"number": 13,
"prompt": "How do you resolve a conflict in git?"
}
],
"title": "Git",
"url": "https://jshively37.github.io/"
}