From: Olivier Marin <dkr+ml.git@free.fr>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [BUG] git-branch -m cannot rename remote branches
Date: Mon, 09 Jun 2008 14:53:29 +0200 [thread overview]
Message-ID: <484D27C9.4000102@free.fr> (raw)
In-Reply-To: <200806090906.51937.jnareb@gmail.com>
Jakub Narebski a écrit :
>
> What I really wanted was "git remote rename <old-name> <new-name>",
> together with renaming branches and moving reflogs. I can do first
> part by editing config file ("git remote rename"/"git remote mv"
> probably would want to assume that user wants to move branches if
> they follow remotes/<old-name>/* calling convention; ask user if it
> is not the case?). I thought that I could use "git branch -m" for
> the other... I was left with editing packed-refs file (BTW. is leaving
> empty directory 'xx' when packing 'xx/name' branch by design?) and
> moving reflog by hand.
>
You can use "git update-ref" for that. Maybe something like that:
$ git update-ref <newref> <oldref>
$ git update-ref -d <oldref> <newref>
Olivier.
prev parent reply other threads:[~2008-06-09 12:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-08 20:57 [BUG] git-branch -m cannot rename remote branches Jakub Narebski
2008-06-08 22:58 ` Johannes Schindelin
2008-06-09 7:06 ` Jakub Narebski
2008-06-09 12:53 ` Olivier Marin [this message]
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=484D27C9.4000102@free.fr \
--to=dkr+ml.git@free.fr \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).