Reputation: 51463
Say I have these git branches:
master
branchone
I want to do this, keeping all history intact:
master -> oldmaster
branchone -> master
Upvotes: 5
Views: 814
Reputation: 793099
You can use git branch -m
.
git branch -m master tmpbranch
git branch -m branchone master
git branch -m tmpbranch branchone
Upvotes: 7