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?
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
Post a Comment