BRANCH & MERGE Flashcards

Git Commands

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

list your branches. a * will appear next to the currently active branch

A

git branch

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

create a new branch at the current commit

A

git branch [branch-name]

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

switch to another branch and check it out into your working directory

A

git checkout

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

merge the specified branch’s history into the current one

A

git merge [branch]

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

show all commits in the current branch’s history

A

git log

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