Change the current branch to master in git
Posted
by Karel Bílek
on Stack Overflow
See other posts from Stack Overflow
or by Karel Bílek
Published on 2010-05-04T05:30:52Z
Indexed on
2010/05/04
5:38 UTC
Read the original article
Hit count: 328
git
I have a repository in git. I made a branch, then did some changes both to the master and to the branch.
Then, tens of commits later, I realized the branch is in much better state than the master, so I want the branch to "become" the master and disregard the changes on master.
I cannot merge it, because I don't want to keep the changes on master. What should I do?
(this will very possibly be a duplicate question, since it is trivial, but I have not found it here)
© Stack Overflow or respective owner