我想回到我上次的 github 提交,但我不知道如何继续。 这是我的git日志,第一个是我的最后一个
commit 0d74db9ccbdec3ffc42c42216d1352e9bee51b62 (HEAD -> master,
origin/master)
Author: filipmyllari <fm222hp@student.lnu.se>
Date: Tue May 29 14:26:15 2018 +0200
Recontructing navigation
commit e5e7f7002f76f47e394c097f770e325c7058002d
Author: filipmyllari <fm222hp@student.lnu.se>
Date: Wed May 23 14:29:44 2018 +0200
Small design tweaks and bug fixes
commit af133f818667edb12a880accd0be75f845da6a1c
:
git checkout commitid
在您的情况下
Git 结帐 e5e7f7
要找回最后一个 git 提交,只需运行
git checkout last_commit_id
用于删除特定提交尝试后所做的最后更改git reset --hard
.通过使用此命令,头部将移动到最后一个提交。