问题描述
类似SVN中的命令:svn info -r BASE 'd:/project/Coding'
我现在想知道在git中有没有类似的命令可以得到commit id
跪谢!
问题解答
回答1:git rev-parse HEAD
回答2:git log。可以看很多
回答3:git log --pretty=oneline
回答4:git log或者git reflog都能看到
回答5:两个命令均可以,如同 @云语2019 所说:
#git reflog git log --pretty =oneline
结果如下:
69e1506ad9fed9771b9f7d1e478ac2ff05fc3604 Add git user profile functions for prompt displayc4582777fc50162d8b433cabad34f629b0ea9b98 Merge pull request #4957 from TorrentKatten/mastere8a9d0ee1a97033fb4aa371263889b77200b6d62 localization support for clock in candy themec3b3de5f29b72b45393b62d794450ad3a72703a8 Merge pull request #4956 from RobLoach/asdf616ac67924212df2f75139c94ca323f13f249dc6 Add ’asdf’ plugin回答6:
git log --graph