Have not tried this myself but it looks like (from git help branch)
that you do the following:

git branch -m master m2
git branch -m branch1 master
git branch -m m2 branch1

It swaps the 2 branches.


On Fri, May 8, 2009 at 4:07 PM, James <gan...@gmail.com> wrote:
> Dear all,
> I have two branches in my git repository:
>  master
> *branch1
> Both branches have commits. Now I hope my branch1 becomes master, and
> master becomes "branch2". Which command shall I input? Thanks a lot!
> >

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to