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.

Cheers,
Andy

On Fri, May 8, 2009 at 4:07 PM, James <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to