-2

在 Github 的哪里可以找到<tag/branch/commit id>我想要回滚到的提交?

4

3 回答 3

4

git log允许浏览历史。而在 Github repo 页面的左上角,你可以点击“46 commits”来查看这个日志。

于 2013-08-14T21:57:06.413 回答
2

GitHub中,您可以从项目主页浏览存储库的提交历史、分支和标签(GitHub 称之为“发布”)。

只需导航到https://github.com/<Username>/<Repository Name>

请参阅下面突出显示的区域 -

GitHub 存储库,其中包含信息亮点。

于 2013-08-15T00:11:30.007 回答
0

你有几个选择:

  1. 打开 git bash 并输入gitk
  2. 类型git log --oneline
  3. 如果您知道消息,请搜索您的提交

    git log --oneline | grep "your search phrase"

  4. 如果您对命令行不太擅长,请使用 sourcetree http://www.sourcetreeapp.com/download/

于 2013-08-14T21:57:24.297 回答