Commit Changes
Once you've edited a file, you need to commit your changes to git. When you execute this command it will ask for a commit message - which is just a simple bit of text that tells everyone what you've changed.
$ git commit source/main.c
Will commit the file main.c in the directory ./source/
$ git commit -a # the -a flag pulls in all modified files
will commit all changed files (but not new files, those need to be added to the index with git-add). If you want to commit only certain files then you will need to stage them first with git-add and then commit without the -a flag.
Commiting only changes your local repository though not the remote repositories. If you want to send the commits to the remote repository then you will need to do a push.
$ git push # push new commits to the on the repository
For someone coming from CVS or SVN this is a change since the commit to the central repository now requires two steps.