git - lost local commit when checking out a remote branch -
i checked out master branch, , did changes. committed changes on master branch did not push repository.
what did next check out remote master again. not see local commit anymore.
how local commit back?
you need reset head. use following revert previous commit.
git reflog this give list of commits head values. choose head commit made local master branch.
then, following,
git reset --hard head@<i>
Comments
Post a Comment