From: Olivier Marin Date: Mon, 09 Jun 2008 12:53:29 GMT Subject: Re: [BUG] git-branch -m cannot rename remote branches Message-ID: <484D27C9.4000102@free.fr> In-Reply-To: <200806090906.51937.jnareb@gmail.com> Jakub Narebski a écrit : > > What I really wanted was "git remote rename ", > 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//* 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 $ git update-ref -d Olivier.