Three areas of git

Changing commits
Amend commit
- this can be used to make changes in latest commit only
- to change commit message
git commit --amend -
To add changes to latest commit
- move the changes to staging area
- execute
git commit --amend
-
note: HEAD expressions
Give me HEAD related expressions in git with examples
Making changes in older commits
- Prompt
you are git expert,
I am learning git and i want to understand interactive rebasing and what it does. Give me steps to create a situation and resolve using interactive rebasing. some of sample situations are
1. typo in older commit message
2. changes in older commit
3. Deleting commits
4. combining commits
Give me detailed instruction situation by situation. stop me to implement and then go to the next situation
