Add all files for staging:
git add -A
Commit all changes that are staged:
git commit -m "some message"
Push those changes to the remote repo:
git push origin master
Pull changes in from the remote:
git pull origin master
Stash your changes for latter pop:
git stash
Pop the changes:
git stash pop
Remove all local commits but don't change any files:
git reset HEAD^