git clone <URL>
git add .
- Adds file to local repo and stages for commit.
git commit -m "Add message here"
- Omit '-m' flag to open an editor to add a message.
git push origin <branch>
git reset <commit id>
- This uses the --mixed flag by default which unstages everything and keeps file changes. You can choose the commit to rollback to.