Branches Flashcards
1
Q
git branch branchname
A
- create a new branch named branchname
2
Q
git checkout branchname
A
- switch to the branch named branchname
3
Q
git checkout -b branchname
A
- create a new branch named branchname and switch to that branch
4
Q
git branch
A
- list all branches in the current repository and indicate which branch you’re currently in
5
Q
git branch -D branchname
A
- delete the branch named branchname from the repository