Assume you are done editing and ready to commit changes to remote.
Show changes done (deleted, modified and new files).
git status
Add all changes.
git add .
Commit all changes (locally)
git commit -m 'patch for bug #33'
NOTE: Run git log -1
to check last commit comment.
NOTE: Single Git Command for Add and Commit
Push commit to remote server.
git push origin master
NOTE: Refer Single Git Command (Alias) for Add, Commit and Push