How-To-Git-Started/resources/visualize-git.md
2020-01-16 11:15:29 +01:00

596 B

Visualize git

commands

pres()

Adding commits

git commit -m "message 1"
git commit -m "message 2"
git commit -m "message 3"

Creating a branch

git branch feature
git commit -m "message 4"
git checkout feature
git commit -m "message 5"
git commit -m "message 6"
git commit -m "message 7"
git commit -m "message 8"

Merging with master

git checkout master
git merge feature

undo

Rebase with master

git checkout master
git rebase feature
git checkout feature
git merge master