Once you've git clone
d the repository, and made changes to files, you can use git status
to see what files have changed.
Select changes to commit using git add
. When you've selected ('staged') all the changes you wish to commit, git commit
them. That will commit to your local repository.
To push the commits to github, use git push
.
If you're new to git, I'd very highly recommend you at least browse through the Pro Git book. It's got some good diagrams and explanations for a whole bunch of git topics; I found it very useful. In particular, for this question, look at the 'Recording changes to the repository' and 'Working with remotes' sections.
The StackOverflow Git FAQ / Wiki also has some neat information for common questions; some of those are related to yours, such as this one.
Edit: As an aside, about this part of your question:
... just push those two files I've edited...
Git thinks in terms of commits, not in terms of files. You can't push a subset of files in your repository, because a commit encompasses the entire repository at the time of the commit. git push
and other network-type git
commands, though, are pretty darn good at working out what they should be sending to the remote repositories. Don't worry, even if the repository is large, if you've changed two source files, a git push
won't push every single file back to the remote repository.