Undo a git pull --rebase? -
i ran
git pull --rebase and forget specify "origin". looks git pulled different branches. there way revert repo here undo pull?
thanks
after git pull operation, orig_head should point previous value of head. should able to:
git reset --hard orig_head and started before pull operation. can run:
git show orig_head to see orig_head pointing prior running reset command.
an alternative solution create new branch based on orig_head:
git checkout -b newbranch orig_head verify things way expect, delete old branch , rename new branch.
also see this question discussion of head , orig_head , alternate syntaxes referring same thing.
Comments
Post a Comment