2011-09-06 23 views
5

Dire che ho questi rami git:Git: cambia ramo principale?

master 
branchone 

voglio fare questo, mantenendo intatta tutta la storia:

master -> oldmaster 
branchone -> master 

risposta

7

È possibile utilizzare git branch -m.

git branch -m master tmpbranch 
git branch -m branchone master 
git branch -m tmpbranch branchone