Re: [PATCH] revisions: add @{default} shorthand for default branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 2, 2026, 21:44 UTC
- Message-ID
- <xmqqms1qx1kk.fsf@gitster.g>
- In-Reply-To
- <20260202101445.13790-1-haraldnordgren@gmail.com>
Harald Nordgren <haraldnordgren@gmail.com> writes:
Show 6 quoted lines
> My main is a mirror of upstream/main. I never commit to it, just do > 'git pull' to create releases. > > Also, I switch to it when I discover a bug on my branch, to try to > understand if the bug is already on main or not. It's the baseline all work > is compared against.
OK.
But for that kind of "I go there to see, but I never modify anything there let alone committing to it" usage, detached HEAD is exactly the tool invented for. So while I can understand the allure of always having my local 'main' be at the 'main' at the remote, I no longer see this as a "must have, somebody would die unless we add it" kind of thing anymore, even though I think it may be a nice thing to have for some people.
Thanks.