Re: [Q] Changing the current branch (HEAD) in a bare repository - how?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 6, 2008, 15:47 UTC
- Message-ID
- <alpine.DEB.1.00.0806061646280.1783@racer>
- In-Reply-To
- <a537dd660806060843p4e92932x4e0f5464c5fd1da1@mail.gmail.com>
Hi,
On Fri, 6 Jun 2008, Brian Foster wrote:
Show 23 quoted lines
> Using git 1.5.2.5 (Kubuntu 7.10) and a bare repository, > I started with (the commands and output below are typed > in by hand, mostly from memory): > > $ git branch -a > * master > foo > $ > > and then changed the branch names: > > $ git branch -m master old-master > $ git branch -m foo master > > and got this: > > $ git branch -a > master > * old-master > $ > > Now, how do I change the current branch to the (new) > `master'?
vi HEAD
Ciao, Dscho