Git Flashcards

1
Q

git init

A

initializes a new git repository

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

git config

A

configure git

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

git help [command]

A

brings up 21 most common git commands [or specific command]

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

git status

A

see the status of your repository

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

git add

A

does NOT add files, brings them to git’s attention (??)

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

git commit -m “Message”

A

commit changes, take snapshot of repository

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

git branch branch_name

A

creates a new branch

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

git checkout [master/branch_name]

A

look at another repository [the main one/branch named x]

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

git merge

A

merge a branch with the master [git merge branch_name]

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

git pull

A

get the most recent version of your repo

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

difference between git and other vcs?

A

Other VCSs store a set of files and the changes made to those files, git stores snapshots of a project (saving references to unchanged things for efficiency)

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

how does Git checksum?

A

SHA-1 hash creates a 40-char string before any change can be made

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