BRANCH & MERGE Flashcards
Git Commands
1
Q
list your branches. a * will appear next to the currently active branch
A
git branch
2
Q
create a new branch at the current commit
A
git branch [branch-name]
3
Q
switch to another branch and check it out into your working directory
A
git checkout
4
Q
merge the specified branch’s history into the current one
A
git merge [branch]
5
Q
show all commits in the current branch’s history
A
git log