I've read a bunch of tutorials and they all stop just short of what I want to do next. I've set up git on OS X and pushed all the files up to github. My git status says:
On branch master
nothing to commit, working directory clean
Now I want to update one of the files on github. Do I just update and commit on git locally and then push it up to github or do I have to pull it first? I'm the only person working on this repo. I'm sure there must there must be some documentation somewhere. Everything I've seen is for branching, merging, etc.
Answer
The accepted answer by floor below appears to be what you would do with new files. I've found that the last two steps are all I need to update an existing file:
git commit -m "Reason for change"
git push origin master
I would guess that, if the destination file on github was out of sync with your local copy, you would get an error and would have to do a merge. As stated above, this process assumes you have pushed your repository up to github for the first time and now want to make changes.