1,lotus版本回退
# git show
commit b42e4816007c34ea505f0f60b3b4577f5727ed5c (HEAD -> master, origin/master, origin/HEAD)
Merge: 7f9a3ac5 e5a48800
Author: ?ukasz Magiera
Date: Thu Jan 30 08:18:49 2020 +0100Merge pull request #1182 from zhy2006/masterfix:a bug of the power percentage in lotus-storage-miner info
# git checkout 2841edfb96c0ecf472a90457f1594acccc70d328
注意:正在检出 '2841edfb96c0ecf472a90457f1594acccc70d328'。您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以通过另外
的检出分支操作丢弃在这个状态下所做的任何提交。如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在检出命令添加
参数 -b 来实现&#xff08;现在或稍后&#xff09;。例如&#xff1a;git checkout -b <新分支名>HEAD 目前位于 2841edfb Merge pull request #1157 from filecoin-project/feat/cli/stategetdeal# git show
commit 2841edfb96c0ecf472a90457f1594acccc70d328 (HEAD)
Merge: 7b258edd c0e317f8
Author: Whyrusleeping
Date: Sat Jan 25 10:17:49 2020 -0800Merge pull request #1157 from filecoin-project/feat/cli/stategetdealcli: state get-deal
# git checkout b60860456db4ddc9e4e8e0fbb9fc4ec1be706140
之前的 HEAD 位置是 2841edfb Merge pull request #1157 from filecoin-project/feat/cli/stategetdeal
HEAD 目前位于 b6086045 Merge pull request #1168 from filecoin-project/bugs/invalid-state-transition# git show
commit b60860456db4ddc9e4e8e0fbb9fc4ec1be706140 (HEAD)
Merge: 095a309a 1cdf2924
Author: Łukasz Magiera
Date: Tue Jan 28 23:32:42 2020 &#43;0100Merge pull request #1168 from filecoin-project/bugs/invalid-state-transitionplanCommitting must handle SectorCommitFailed
参考&#xff1a;
1&#xff0c;使用git checkout和git reset回退到历史版本