Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to reset develop branch to master

I have develop & master branches, my develop branch is messy now and i would like to reset it and make it as a copy of my master. i'm not sure if merging the master into develop will make both of them identical. after trying to merge i got many conflicts i solved them using:

git checkout develop git merge origin/master //got many conflicts git checkout . --theirs 

is this enough for develop branch to be an identical copy to master ?

Thanks

like image 646
trrrrrrm Avatar asked Aug 26 '13 04:08

trrrrrrm


1 Answers

if you just want them to be the same thing

then

//from Develop and assuming your master is up to date with origin/master git reset --hard master 
like image 146
Tim Jarvis Avatar answered Sep 24 '22 00:09

Tim Jarvis