Git Branching Flashcards
1
Q
How do you add a new branch?
A
git branch fencing
2
Q
How do you view what the branches are, and which one you’re working on currently?
A
git branch
3
Q
How do you switch to work on another branch?
A
git checkout fencing
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
5
Q
How would you delete a branch?
A
git branch -D fencing
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