# Haal repo binnen git clone https://gitlab.ulyssis.org/intermediate-git-2020/demo-3.git cd demo-3 ## git rebase --onto git status git switch develop # Haal branches binnen git switch master # List alle branches ipv alle remotes git log --oneline --graph --branches # Rebase de commits in feature op master git rebase develop feature --onto master # List alle branches opnieuw, bemerk wat er gebeurd is git log --oneline --graph --branches # Fast-forward master opnieuw naar feature git switch master git merge feature git log --oneline --graph --branches # Hoe onthoud ik de precieze commands? git help rebase ## Veilig en onveilig rebasen git switch feature git log --oneline --graph --all # Note waar feature en origin/feature staan git pull origin feature # Do een pull van de remote vim calc.py # fix conflicts git add . git merge --continue # Note: # Commits van feature staan er twee keer in! # Er staan commits van develop in die we niet in master wouden! git log --oneline --graph --all cd ..