如何查看和拉取以前的远程分支推送?

时间:2014-01-12 20:29:20

标签: git logging version push

假设我有一个名为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  
  1. 如何在REMOTE上列出/查看分支1的历史记录(上述3个版本,日期和注释的列表)?

    我尝试失败git show -r branch1git ls-remote origin branch1git log origin/branch1 ...

  2. 如何拉出分支1的Dec 17版本?

  3. 我也看了Retrieve specific commit from a remote Git repository和相关的,但我找不到简单的简短答案。

1 个答案:

答案 0 :(得分:0)

您可以列出本地跟踪分支

git log origin/branch1