From: Ben Knoble Date: Mon, 02 Feb 2026 22:17:31 GMT Subject: Re: [PATCH] revisions: add @{default} shorthand for default branch Message-ID: In-Reply-To: <20260202211919.4968-1-haraldnordgren@gmail.com> > Le 2 févr. 2026 à 16:19, Harald Nordgren a écrit : > >  >> >> If you don't need to be on a branch, then "git switch -d origin" (or >> upstream, or whatever your remote is) should work just fine. > > Thanks, but it needs to be a branch, do you use detached heads for > anything? 🤗 For me, the only ever happen by accident. Yes, frequently :) I run « git switch -d origin » a lot to avoid having to keep a local main branch up to date (if I don’t use it for anything, which is often the case).