Tuesday, November 17, 2009

"Your branch is ahead by X commits" - But It Isn't

If git tells you this, the solution is git fetch.

Basically, git loses track of its remotes from time to time, and git fetch refreshes its memory.