Git Commands Flashcards

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

Use to put files on stage

A

git add

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

Gives a status of last files were updated

A

git status

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

Use will open an editor to comment stats and details from your commit

A

git commit

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

Use to take a look at your history

A

git log

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

Takes a look in all branches created

A

git branch

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

Creates a new branch to work

A

git branch

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

Discards all updates at Working Directory and Staging Area - BE CAREFUL

A

git reset —hard

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

Commits files at stage

A

git commit

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

Cleans the file from stage to send to Repository

A

git reset

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

Adds files to a stage before send to commit

A

git add

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

Creates a git repository at directory with all files, when creates doesn’t create no snapshot

A

git init

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

Returns the COMMIT ID to life -Temporarily reset all files in a directory to their state at the time of a specific commit

A

git checkout

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

COMPARES FILES between Staging Area to Repository

A

git diff —staged

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

No Args - COMPARES FILES between Working Directory to Staging Area

A

git diff

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

To get differences between two commits, first the older

A

git diff

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

Copies entire structure and all versions to local directory

A

git clone

17
Q

Switches to named branch

A

git checkout

18
Q

Uses to see graphically in one line all branches

A

git log –graph –oneline

19
Q

Merge two branches in a new one

A

git merge

20
Q

Compares Commit updates to its parent

A

git show

21
Q

Deletes a specific branch

A

git branch -d

22
Q

Manage set of tracked repositories

A

git remote

23
Q

Add new repository at GitHub

A

git remote add

24
Q

V = Verbose more information about remote

A

git remote -v

25
Q

Updates remote refs using local refs, while sending objects necessary to complete the given rfs

A

git push

26
Q

Fetch from and integrate with another repository or a local branch

A

git pull

27
Q

Sequence to update a file with other branch and commit to remote repository

A

git branch “different-oil” /create new branch
git checkout “different-oil” /access new branch
–UPDATE FILES YOU NEED
git add cake-recipe.txt
git commit
git push origin different-oil

28
Q

Download objects and refs from another repository

A

git fetch