Git Flashcards
1
Q
Display configuration user name.
A
git config –get user.name
2
Q
Displayed configured email.
A
git config –get user.email
3
Q
Check git version.
A
git –version
4
Q
Configure git (if not configured)
A
git config –global user.name “User Name”
5
Q
Configure email git
A
git config –global user.email “user@email.com”
6
Q
Initialize an empty repository
A
git init .
7
Q
git reset –hard
A
reset to last commit
8
Q
git branch -r
A
See all remote branches.