git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Adding new/create & del/delete aliases into git

From
JKJasdeep Khalsa <jasdeepkhalsa1@gmail.com>
Date
Dec 16, 2021, 13:29 UTC
Message-ID
<CALtRjJ3bu1ub=407kt-aemfV6BU8CfPZJxLRG5WgTZBYWbaXCQ@mail.gmail.com>
Hi there Git Community!
I've been using the following aliases for a long time:

del or delete = branch -D new or create = checkout -b

And I feel these are good candidates as an addition into the core git API as they provide an easy way for new starters to understand the creating and deleting of branches - which is arguably one of the most common git operations.

In comparison, passing in flags for this purpose for new starters to git, is both hard to remember and not easy or obvious to understand what is going on.

From my understanding, these flags were also meant as a shortcut to do a git branch && git checkout in one operation - effectively being alias flags anyway.

So I wanted to reach out to find out what appetite there may be out there to add/change these to be simpler for new starters to git :)

Thanks for considering my proposal and happy to discuss any thoughts!
Jasdeep
https://github.com/jasdeepkhalsa
Next: Ævar Arnfjörð Bjarmason
Message 1 of 3 in “Adding new/create & del/delete aliases into git”
  1. Jasdeep KhalsaDec 16, 2021
  2. Ævar Arnfjörð BjarmasonDec 16, 2021
  3. Junio C HamanoDec 17, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.