Closed mcgrodsky closed 9 years ago
It tells you what to do right in the error message:
hint: (e.g., 'git pull ...') before pushing again.
I did "git pull" and it corrected the issue. Do you know why/how this would happen though? Aka how Git had files that i didn't have locally?
My guess is that you were working on two different branches, pushed one branch to Github, and then switched over to the other branch, which hadn't been pushed to Github. Thus, Github was "ahead" of that other branch.
Another possibilitiy:
you created / edited a file using the github.com web interface (which makes a commit on the github copy of the repo)
looking at your commit history, it might have been creating the README.md
ah! Adam I think that's it - i did create README.md in git after initializing the repository and pushing up my work. But it seems to be working fine now. Thanks guys!
Trying to commit changes - here is what happened: