Your branch is ahead of 'origin/master' by 1 commit.
Your branch is ahead of 'origin/master' by 1 commit.
- Subject: Your branch is ahead of 'origin/master' by 1 commit.
- From: Jerry Krinock <email@hidden>
- Date: Wed, 11 Sep 2013 20:25:33 -0700
Git newbie question. Actually, I'm not that much of a newbie, but since it became integrated into Xcode it seems to "just work" and so there's a lot about Git that I've never taken the time to understand. Probably that's worse than being a newbie.
Anyhow, for the few days, regarding an open-source repo of mine on github.com, I've been getting this when I attempt to "Commit"…
Git Error: Your branch is ahead of 'origin/master' by 1 commit.
After reading some documentation and taking a guess, I decided to try and fix this by first doing a "Pull".
After the "Pull", I compared what was on my hard drive for this project with a Time Machine backup from before the "Pull" and found only one change, the addition of a README.md file. Ah, a few days ago I think I was poking around on github.com and was invited to add a ReadMe file, in their web interface, which I did.
I then tried a "Commit" with "Push" and it worked with no complaint. So the problem is solved.
Does it make sense that this problem was caused by me adding the ReadMe on github.com?
Then why did the error say "Your branch is ahead of origin/master"? I presume that "my branch" is on my Mac, and 'origin/master' is on github.com. I would say that I was "behind", not "ahead".
Thanks,
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden