ammend commit code example
Example 1: git amend
git commit --amend
Example 2: git amend
git commit --amend -m "an updated commit message"
Example 3: change commit message
git commit --amend
// press enter, editor would open
Example 4: git ammend commit
# Edit hello.py and main.py
# git add hello.py ---> git commit
# Realize you forgot to add the changes from main.py
# git add main.py
git commit --amend --no-edit