This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
How-To-Git-Started/visualize-git.md
2020-01-15 16:39:13 +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