# Haal repo binnen git clone https://gitlab.ulyssis.org/intermediate-git-2020/demo-2.git cd demo-2 # Bekijk de staat van de repo git log --oneline --graph --all git show ## Cherrypick # Toon cherrypick git cherry-pick 92742ae # 'add multiplication support' vim calc.py # Bekijk changes # Note de verschillende commit hash git log --oneline --graph --all # Ga terug naar originele staat git reset --hard HEAD~1 ## Rebase # Toon staat opnieuw git log --oneline --graph --all # Switch naar feature, nodig om de branch daadwerkelijk lokaal te maken git switch feature # Doe een rebase git rebase master feature # Kijk wat de rebase gedaan heeft git log --oneline --graph --branches # "merge" feature in master met een fast-forward git switch master git merge feature git log --oneline --graph --branches cd ..