branch - Git - find a bug in specified commit -


there bug appeared in commit 63aeeab. there many changes between b947052 , 63aeeab. want somehow checkout 63aeeab , discard changes 1 one find bug. , go current commit. proper way?

enter image description here

one option checkout 63aeeab , reset previous commit. in way return in b947052 before creating next commit , changes introduced 63aeeab in working copy.

git checkout 63aeeab git reset head^ 

note these commands have no effects on git tree shape, no branches moved, no commits changed.

in state should able discard changes 1 one (it helpful --patch option of git checkout)

let me say, sorry have this, make small commits, add unit tests.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -