All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jasdeep Khalsa <jasdeepkhalsa1@gmail.com>
To: git@vger.kernel.org
Subject: Adding new/create & del/delete aliases into git
Date: Thu, 16 Dec 2021 13:29:15 +0000	[thread overview]
Message-ID: <CALtRjJ3bu1ub=407kt-aemfV6BU8CfPZJxLRG5WgTZBYWbaXCQ@mail.gmail.com> (raw)

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

             reply	other threads:[~2021-12-16 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-16 13:29 Jasdeep Khalsa [this message]
2021-12-16 23:43 ` Adding new/create & del/delete aliases into git Ævar Arnfjörð Bjarmason
2021-12-17  0:57 ` Junio C Hamano

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='CALtRjJ3bu1ub=407kt-aemfV6BU8CfPZJxLRG5WgTZBYWbaXCQ@mail.gmail.com' \
    --to=jasdeepkhalsa1@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.