git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Franz LiedkeNext: Franz Liedke
Message 9 of 11 in “[Support] Branch pointer does not move”
  1. Franz LiedkeMar 14, 2011
  2. Sverre RabbelierMar 14, 2011
  3. Franz LiedkeMar 14, 2011
  4. Sverre RabbelierMar 14, 2011
  5. Franz LiedkeMar 14, 2011
  6. Sverre RabbelierMar 14, 2011
  7. Michael J GruberMar 14, 2011
  8. Franz LiedkeMar 14, 2011
  9. Michael J GruberMar 14, 2011
  10. Franz LiedkeMar 14, 2011
  11. Michael J GruberMar 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.