Branches Flashcards

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

git branch branchname

A
  • create a new branch named branchname
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

git checkout branchname

A
  • switch to the branch named branchname
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

git checkout -b branchname

A
  • create a new branch named branchname and switch to that branch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

git branch

A
  • list all branches in the current repository and indicate which branch you’re currently in
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

git branch -D branchname

A
  • delete the branch named branchname from the repository
How well did you know this?
1
Not at all
2
3
4
5
Perfectly