From: andre_pohlmann@posteo.de
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: bug or a general misunderstanding
Date: Wed, 10 Nov 2021 18:27:56 +0000 [thread overview]
Message-ID: <3dd24fb6153cf8d67b74c6cea1a4a734@posteo.de> (raw)
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:
> 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
>>
>>
next prev parent reply other threads:[~2021-11-10 18:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-10 12:00 bug or a general misunderstanding andre_pohlmann
2021-11-10 14:33 ` Ævar Arnfjörð Bjarmason
2021-11-10 14:46 ` Johannes Schindelin
2021-11-10 18:27 ` andre_pohlmann [this message]
[not found] ` <YY2MXSZXIRSDLQCu@camp.crustytoothpaste.net>
2021-11-15 10:56 ` andre_pohlmann
2021-11-15 21:08 ` Jeff King
2021-11-16 9:01 ` andre_pohlmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dd24fb6153cf8d67b74c6cea1a4a734@posteo.de \
--to=andre_pohlmann@posteo.de \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).