添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
$ git log commit 1d7505ff878281db3dba47c261e48efc84c0d939 (HEAD -> master) Author: admin <admin@com> Date: Thu Sep 2 15:08:25 2021 +0800 添加设计文档2 commit aeb65f4a813ec759c1bd886b196080ec06835414 Author: admin <admin@com> Date: Sun Aug 29 16:59:20 2021 +0800 添加需求文档 commit 2c97086779fc3d4de014689f296d77f8ea4a865f Author: admin <admin@com> Date: Sun Aug 29 13:57:40 2021 +0800 修改README.txt文件 commit a235818c40c14a444a0299c1af05e9f774287dce Author: admin <admin@com> Date: Sun Aug 29 10:31:32 2021 +0800
$ git log --pretty=oneline
1d7505ff878281db3dba47c261e48efc84c0d939 (HEAD -> master) 添加设计文档2
aeb65f4a813ec759c1bd886b196080ec06835414 添加需求文档
2c97086779fc3d4de014689f296d77f8ea4a865f 修改README.txt文件
a235818c40c14a444a0299c1af05e9f774287dce 添加readme文件
$ git log --pretty=oneline
aeb65f4a813ec759c1bd886b196080ec06835414 (HEAD -> master) 添加需求文档
2c97086779fc3d4de014689f296d77f8ea4a865f 修改README.txt文件
a235818c40c14a444a0299c1af05e9f774287dce 添加readme文件
$ git log --pretty=oneline
1d7505ff878281db3dba47c261e48efc84c0d939 (HEAD -> master) 添加设计文档2
aeb65f4a813ec759c1bd886b196080ec06835414 添加需求文档
2c97086779fc3d4de014689f296d77f8ea4a865f 修改README.txt文件
a235818c40c14a444a0299c1af05e9f774287dce 添加readme文件
$ git reflog
1d7505f (HEAD -> master) HEAD@{0}: reset: moving to 1d7505f
aeb65f4 HEAD@{1}: reset: moving to HEAD^
1d7505f (HEAD -> master) HEAD@{2}: commit (amend): 添加设计文档2
57c5b17 HEAD@{3}: commit: 添加设计文档
aeb65f4 HEAD@{4}: commit: 添加需求文档
2c97086 HEAD@{5}: checkout: moving from Devlopment to master
93f5bdb (Devlopment) HEAD@{6}: commit: 添加设计文档
2c97086 HEAD@{7}: checkout: moving from master to Devlopment
2c97086 HEAD@{8}: commit: 修改README.txt文件
a235818 HEAD@{9}: commit (initial): 添加readme文件

要重返未来,用git reflog查看命令历史,以便确定要回到未来的哪个版本。

所属专题:

本文原创,作者:Modeler。
如需转载,请注明出处:https://modelbaba.com/version-control/859.html

相关文章