i wanted revert local changes with
git checkout -- . but accidently did
git checkout - . and made lots of local modifications can't understand @ all.
what second command , possible revert done?
git checkout - checks out checked out branch. assume git checkout - . replace contents of working copy contents of checked out branch.
you can not undo that, since wanted reset contents of working dir anyways, why don’t run git checkout -- .?
you might want use git reset --hard in future undo changes against current branch. resets index.
Comments
Post a Comment