Reviewing your changes then committing and pushing them is kind of like a fancy
ctrl+s
--that is, a best practice to get in the habit of doing so regularly
that it becomes automatic. This process should happen at the end of any
significant change and definitely before you walk away from your code. You can go
to bed angry, just don't go to bed without committing and pushing your code.
Here are the steps to follow in Repl.it.
In the Console
git status
: Review which files have changed to make sure there is nothing unexpected.git add .
: Stage all changes.git status
: Sanity check to ensure that all changes are now staged.git diff --staged
: Review your changes to check for mistakes.
Make any neccessary change then repeat from step 1.
In Repl.it