-
git log(查看提交日志)
打印出最近提交过的版本号
如:commit:074eb0c64hfsdaf7dsa7
Author:
Date:
… -
git reset --hard 074eb0c64hfsdaf7dsa7(找到要回退的版本号)
HEAD is now at …
此时git中的head指针指向要回退的版本 -
git push -f(将要回退的版本重新推到git上)
注:是将要回退的版本重新推一份到最新版本,之前操作的版本,仍保留
git log(查看提交日志)
打印出最近提交过的版本号
如:commit:074eb0c64hfsdaf7dsa7
Author:
Date:
…
git reset --hard 074eb0c64hfsdaf7dsa7(找到要回退的版本号)
HEAD is now at …
此时git中的head指针指向要回退的版本
git push -f(将要回退的版本重新推到git上)
注:是将要回退的版本重新推一份到最新版本,之前操作的版本,仍保留