git pull undo error
originally wanted to merge the newpbft on github into the local newpbft branch. Since I did not check the current branch, I directly used the git pull origin newpbft
, but the newpbft was merged into the master branch.
solution
1, run the git reflog
command to view your history of changes, as follows:
fdb70fe HEAD@{0}: pull origin newpbft: Fast-forward
40a9a83 HEAD@{1}: checkout: moving from guan to master
b3fa4c3 HEAD@{2}: commit: copy from newpbft, first init
71bf0ec HEAD@{3}: checkout: moving from newpbft to guan
71bf0ec HEAD@{4}: commit: 1. add moveStore() to clean up certStore and blockStore.
1006d67 HEAD@{5}: commit: 1. Add PBFT branch to Puppeth.
fa3fb56 HEAD@{6}: commit: 1. change some errors about packages and vars
5f40fdc HEAD@{7}: checkout: moving from master to newpbft
40a9a83 HEAD@{8}: clone: from https://github.com/yeongchingtarn/geth-pbft.git
2, then use git reset --hard HEAD@{n}
, (n is the reference to which you want to fall back) to fall back.
For example, in the figure above, git reset --hard 40a9a83
Read More:
- [Git] git pull pull remote git push to remote git commit submit reject
- Git pull error: pull is not possible because you have unmerged files
- How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict
- Git Pull Failed solution
- Git solves pull origin error: the following untracked working tree files would be rewritten by merge
- git pull error: unable to unlink old (Permission denied)
- Pull the git warehouse code IDEA reports an error: Clone failed: Authentication failed for’http://10.xx.XXXXXXXXXXXXXXXXX’
- Oracle quick replacement undo table space method
- Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then
- Git error prompt: fatal: not a git repository (or any of the parent directories):. Git
- Pull is not possible because you have unmerged files
- Using curl to generate gnutls_ Handshake() failed: error in the pull function or gnutls recv error: error in the pull function
- Revoking undo and revoking redo by VIM
- Win10 installation git click git bash flash back problem solution
- DB2 table annotation pull
- Git prompts another git process sees to be running in this repository, e.g. an editor opened by
- Git bash run error, GIT 32 bit
- Error: No such keg: /usr/local/Cellar/node&install nvm&brew installation&Oh my zsh.git installation&git set alias&No bundle URL prese
- Pull code execution NPM install error code: 128
- Error: no such keg: / usr / local / cellular / node & install NVM & Brew install & oh my Zsh. Git install & git set alias & no bundle URL press