Re: [RFC] Teach git-branch howto rename a branch
- From
Fredrik Kuivinen <frekui@gmail.com>
- Date
- Nov 25, 2006, 10:39 UTC
- Message-ID
- <4c8ef70611250239h4e03b9c7k971b60187aa0f56d@mail.gmail.com>
- In-Reply-To
- <1164409429445-git-send-email-hjemli@gmail.com>
On 11/25/06, Lars Hjemli <hjemli@gmail.com> wrote:
Show 7 quoted lines
> This adds a '--rename' option to git branch. If specified, branch > creation becomes branch renaming. > > With a single branchname, the current branch is renamed and .git/HEAD is > updated. > > With two branchnames, the second name is renamed to the first.
Nice idea. But wouldn't it be more sensible to rename the first branch to the second instead of the other way around? That is, the syntax would be
git branch --rename FROM TO
which is more similar to how "mv" works.