I have two branches in my Git repository:
master
seotweaks
(created originally frommaster
)
I created seotweaks
with the intention of quickly merging it back into master
. However, that was three months ago and the code in this branch is 13 versions ahead of master
.
It has effectively become our working master branch as all the code in master
is more or less obsolete now.
Very bad practice I know, lesson learned.
Do you know how I can replace all of the contents of the master
branch with those in seotweaks
?
I could just delete everything in master
and merge, but this does not feel like best practice.
git checkout seotweaks -- *
then run,git commit -m "Replaced contents of master with seotweaks"
finally rungit push
– Halvorson