Re: bug or a general misunderstanding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi André,

On Wed, 10 Nov 2021, andre_pohlmann@xxxxxxxxx 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
>
>

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux