git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reference the master/main branch with @{m}
@ 2023-04-24 15:11 Xavier Roche
  2023-04-24 15:45 ` Felipe Contreras
  0 siblings, 1 reply; 2+ messages in thread
From: Xavier Roche @ 2023-04-24 15:11 UTC (permalink / raw)
  To: git

With git, you can reference the upstream branch with the @{upstream}
or @{u} shorthand
(https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches)

With master/main branch varying among repositories, it would be handy
to have a "main/master" reference, such as @{main} or @{m}

Would that make sense?

-- 
Xavier Roche -
xavier.roche@algolia.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-24 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 15:11 Reference the master/main branch with @{m} Xavier Roche
2023-04-24 15:45 ` Felipe Contreras

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).