Re: [Support] Branch pointer does not move
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Mar 14, 2011, 16:29 UTC
- Message-ID
- <4D7E4277.8040202@drmicha.warpmail.net>
- In-Reply-To
- <op.vsccqtbobl4hj1@metalltrottel.fritz.box>
Franz Liedke venit, vidit, dixit 14.03.2011 17:14:
Show 6 quoted lines
> Hey Michael, > > in fact, I have been making commits both from the command line and from > SmartGit from time to time, and yes, they were both running. > This has never been the problem before. >
I don't know how smartgit reacts when you switch the branch in git while smartgit is running, for example.
> I ran some sort of cleanup tool yesterday, possibly about the time when > the problem started (I only noticed it today). Something along the lines > of 'git gc' maybe, if I remember correctly. Could that be the cause?
git gc does not do any evil as long as you're not accessing the repo with another client at the same time.
So, have you lost any commits? Maybe something like
git log --graph --abbrev-commit --pretty=oneline --decorate --all
will give you a clearer picture of where your commits went. If they're not there then inspecting the reflog of HEAD may help:
git log -g --abbrev-commit --pretty=oneline --decorate HEAD
Michael