1. git log --oneline
    • Lists all commits in the repository in a compact, one-line format
  2. git commit --allow-empty -m "Empty commit"
    • Creates an empty commit with the message “Empty commit”
  3. git reset --soft HEAD~1
    • Resets the current branch to the previous commit, keeping the changes in the staging area