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

Re: bug or a general misunderstanding

From
Aandre_pohlmann@posteo.de <andre_pohlmann@posteo.de>
Date
Nov 10, 2021, 18:27 UTC
Message-ID
<3dd24fb6153cf8d67b74c6cea1a4a734@posteo.de>
In-Reply-To
<nycvar.QRO.7.76.6.2111101545000.21127@tvgsbejvaqbjf.bet>
Hello Johannes,
Thanks for your ideas.

I have checked out the respective new branch and switched between the original and the new, multiple times. Otherwise I would not have noticed the lack of commits.

I have also set up a virtual machine, free of any IDE or GIT. There I only installed Git for Windows and repeated the process via cmd. The result is the same, there are missing commits in the history compared to the original branch.

Best regards André Pohlmann

Am 10.11.2021 15:46 schrieb Johannes Schindelin:
Show 35 quoted lines
> Hi André,
> 
> On Wed, 10 Nov 2021, andre_pohlmann@posteo.de wrote:
> 
>> The following situation: I wanted to create a branch from a commit. 
>> From there
>> on the work should be continued.
> 
> I suspect that the command you used was `git branch <name> <commit>`? 
> That
> _creates_ the branch, but does not switch to it. You need to call `git
> switch <name>` to switch the worktree to it. If you want to do all in 
> one
> go, use `git switch -c <name> <commit>`.
> 
> Ciao,
> Johannes
> 
>> 
>> The possible bug:
>> The newly created branch is missing commits in the history. Not only 
>> are they
>> not displayed, the code changes are not present.
>> It doesn't matter if the branch is created by Visual Studio or GIT for
>> Windows.
>> Only in a branch created by GitHub Desktop the commits are present, as 
>> I would
>> expect.
>> 
>> Is this a bug or do I not understand how GIT works?
>> 
>> Best regards and thank you for the effort
>> André Pohlmann
>> 
>> 
Previous: Johannes SchindelinNext: andre_pohlmann@posteo.de
Message 4 of 7 in “bug or a general misunderstanding”
  1. andre_pohlmann@posteo.deNov 10, 2021
  2. Ævar Arnfjörð BjarmasonNov 10, 2021
  3. Johannes SchindelinNov 10, 2021
  4. andre_pohlmann@posteo.deNov 10, 2021
  5. andre_pohlmann@posteo.deNov 15, 2021
  6. Jeff KingNov 15, 2021
  7. andre_pohlmann@posteo.deNov 16, 2021

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.