This page provides some basic and advanced git commands.
Basic and commonly used Git commands
git commit – m “replace this with your short commit message here”
git commit -a (will go to a terminal window text editor, vim on Mac and windows, and nano on Linux)
Advanced Git commands
git reset –hard 0ad5a7a6 [replace the number with the commit ID of the version you would like to go back]
after hard reset, if you only used push, it will not allow you to push, you can use the following command to force the push.
git push –force origin master