How to merge old version to head of a branch in git? -


my repository has 2 branches, master , mybranch. i've commited many times mybranch, realized many of changes not wanted.

thus, did git checkout of old commit on* mybranch* using

git checkout 02c383 

i want old commit head of mybranch. how do this?

when @ branches, see:

$ git branch *(detached numbershere) mybranch master 

git checkout mybranch git reset --hard 02c383 

after this, mybranch moved point 02c383.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -