Git Branching Flashcards

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

How do you add a new branch?

A

git branch fencing

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

How do you view what the branches are, and which one you’re working on currently?

A

git branch

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

How do you switch to work on another branch?

A

git checkout fencing

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

If make another branch and you make changes to that, but you also want those changes to be included in the master branch, how can you accomplish this?

A

git merge fencing

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

How would you delete a branch?

A

git branch -D fencing

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

When you delete a branch when do you have to capitalise -d in your command/

A

You use an uppercase d when the branches you want to delete aren’t merged into the master branch

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