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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -