# Haal repo binnen git clone https://gitlab.ulyssis.org/intermediate-git-2020/demo-1.git cd demo-1 ## Reset # Bekijk de staat van de repo git log --oneline --graph git show # Herschrijf de laatste commit git reset --soft HEAD~1 -- git log --oneline --graph git status vim README.md # uitleggen dat ik vim gebruik git commit -am "Cleanup" git show # Undo herschrijven met amend vim README.md git commit -a --amend git show ## Interactive rebase git log --oneline --graph git rebase --interactive HEAD~6 # Toon alle functionaliteit: pick, squash, edit, drop, en herordenen # Note dat de commit hashes veranderd zijn! # Verwijder 2e laatste, verwissel README # Bij ge-edite commit git status # Zie dat rebase info in git status staat vim README.md git commit -a --amend git rebase --continue # Na einde rebase git log --oneline --graph # Veranderde hashes git show git show cd ..