Git Flashcards

1
Q

Display configuration user name.

A

git config –get user.name

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

Displayed configured email.

A

git config –get user.email

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

Check git version.

A

git –version

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

Configure git (if not configured)

A

git config –global user.name “User Name”

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

Configure email git

A

git config –global user.email “user@email.com”

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

Initialize an empty repository

A

git init .

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

git reset –hard

A

reset to last commit

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

git branch -r

A

See all remote branches.

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