假设我有一个名为branch1
的分支。为了将我的更改保存在远程仓库上,我进行了很少的合并和推送(在不同的日期),例如:
12月16日:
git merge -am "branch1 comment1"
git push origin branch1
12月17日:
git merge -am "branch1 comment2"
git push origin branch1
12月18日:
git merge -am "branch1 comment3"
git push origin branch1
如何在REMOTE上列出/查看分支1的历史记录(上述3个版本,日期和注释的列表)?
我尝试失败git show -r branch1
,git ls-remote origin branch1
和git log origin/branch1
...
如何拉出分支1的Dec 17版本?
我也看了Retrieve specific commit from a remote Git repository和相关的,但我找不到简单的简短答案。
答案 0 :(得分:0)
您可以列出本地跟踪分支
git log origin/branch1