1. git status # Confirm that the stage doesn't contain files that you don't want to commit.
  2. git add <file> # Add the files to the stage.
  3. git diff -b —cached # Show the changes that are staged. Confirm that these differences, and only these differences, are what you want to put in the current commit.
  4. git commit