git commit with ammend code example
Example: 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
# 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