Git Basics Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

git init

A

Create empty Git repo in specified directory. Run with no arguments to initialize the current directory as a git repository.

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

git clone

A

Clone repo located at onto local machine. Original repo can be located on the local filesystem or on a remote machine via HTTP or SSH.

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

git config

A

Define author name to be used for all commits in current repo. Devs

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

git add

A

Stage all changes in for the next commit. Replace with a to change a specific file.

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

git commit -m

A

Commit the staged snapshot, but instead of launching a text editor, use as the commit message.

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

git status

A

List which files are staged, unstaged, and untracked.

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

git log

A

Display the entire commit history using the default format. For customization see additional options.

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

git diff

A

Show unstaged changes between your index and working

directory

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