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.

Now the development branch will be the master branch.
Your master branch will be named master-old and your development
branch will still be around.

If you want to get rid of any of those branches you can use the git
branch command to delete them.

Note that you'll need extra shenanigans if you have a server you pull
/ push from that you also want to perform this change on.

dan

On Tue, Jun 16, 2009 at 11:06 AM, sw0rdfish <san...@gmail.com> wrote:
>
> I'm having a heck of a time finding the answer to what I assume is a
> simple question...
>
> your help is appreciated...
>
> I have two branches....  master and development...
>
> I want the development branch to become the master branch....  I went
> about changes the wrong way and over a 3 week period made changes to
> master, and then mimicked them in development... stupid I know... so I
> don't care about a merge, I just want to make the development branch
> the master....
>
> How would I do this?  Thanks in advance!
> >

--~--~---------~--~----~------------~-------~--~----~
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 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to