Re: [RFC] git branch: add -s/--switch to create and switch to a new branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 3, 2026, 19:46 UTC
- Message-ID
- <xmqq7bit7l68.fsf@gitster.g>
- In-Reply-To
- <CA++gwosYFaOLD5nZjKUUFtp1ryezikqAsD6vu=uqBzOwyszASw@mail.gmail.com>
Johannes Welsch <johannes.welsch@googlemail.com> writes:
> I'd like to propose adding a -s (--switch) option to `git branch`. > > It makes sense semantically to create a branch and to also switch to it.
Why is "git checkout -b <new-branch-name> [<where-the-branch-begins]" not sufficient?