git merge - Apply locally committed changes over pulled changes using source tree and git -
i have serious problem, committed local changes local branch. then, did pull remote server. resolved conflict. but, 1 mistake did was, accidentally accepted change of remote server on mine. now, changes gone. luckily, still have local commit changes.
now, want local commit overwrite pulled file. not sure right way on sourcetree. can try command line on sourcetree. have tried checkout branch on local change/commit , marked track remote branch. not on writing committed file. know how fix this?
thanks
if want blow away messed local branch has origin merged in can.
git reset --hard goodlocalcommithash
this remove commits on top of of goodlocalcommithash in current branch.
Comments
Post a Comment