git add .
git commit . -m Stuff
git push
That's All you need to get started. Then when you do something stupid you can just revert to a working version.