On Tue, Jun 16, 2009 at 11:16:59AM -0700, Dan Preston wrote:
> git checkout master            # Make sure you are on the master branch.
> git checkout -b master-old   # Make a copy of that branch called
> master-old as a backup.
> git branch -d master            # Delete the original master branch.
> git checkout development    # Switch to the development branch.
> git checkout -b master         # Create a new branch called master
> from the development branch.

You can also use a dirtier way:

        git checkout master
        git reset --hard development

This will set your current branch's top (master) to the given revision
(top of development). Not so tidy conceptually, but useful gateway to
various other git tricks.

                                Petr "Pasky" Baudis
The lyf so short, the craft so long to lerne. -- Chaucer

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