commit ammend code example
Example 1: git amend
git commit --amend
Example 2: git amend
git commit --amend -m "an updated commit message"
Example 3: 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