Thread (4 messages) flat view 4 messages, 3 authors, 2016-08-11

Re: [RFC] Teach git-branch howto rename a branch

From: Fredrik Kuivinen <hidden>
Date: 2016-08-11 20:12:02

On 11/25/06, Lars Hjemli [off-list ref] wrote:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help