Articles in this series
Say you have added main.js to the staging area but later you realised that you don't want to commit it.
You have two ways to achieve it.
After creating new files and editing existing files, we want to add them to the previous commit i.e. rewrote the previous commit.
First, add all the...
Use the --amend flag
git commit -m 'removing sponsor from READMe'
To rectify the above commit message, type
git commit --amend -m 'removing sponsor...
$ brew install git
Set up global configs
You have to do this only once.
$ git config --global user.name "Steve Smith" # Name