A repository for teaching some of the basics of Git workflow. Change branches to view and work on the respective exercise.
- change branches
git checkout [branch name]
- create a branch based on current branch
git checkout -b [branch name]
- check what files have been changed since last commit
git status
- prepare file to be commited
git add [file path]
- commit changes with message
git commit -m "[message]"
- push changes of your current branch
git push origin [branch name]
- merge a branch onto your current branch
git merge [branch name]
- rebase your current branch onto another branch (your changes will start after the most recent changes on that branch)
git rebase [branch name]
- rebase with interactive options to edit commits
git rebase -i [branch name]