简体   繁体   English

Git的。 “窥视”别人推动的变化?

[英]Git. “Peek” at changes other people pushed?

I'm yet fresh to Git. 我还不熟悉Git。

Is there any way to see changes other people pushed to repo since the last time I made a merge to my local machine? 自从我上次与本地计算机进行合并以来,是否有任何方法可以查看其他人推送回购的更改?

I basically need an command line equivalent of Atlassian SourceTree feature of "looking ahead" at commits people pushed since my last merge without fetching those commits (?)... 我基本上需要一个与Atlassian SourceTree功能等效的命令行,“向前看”自上次合并以来推送的提交人,而无需获取这些提交(?)...

You can fetch the commits without actually updating your working copy. 您可以获取提交而无需实际更新工作副本。 Just use git fetch and then browse the various refs it pulls down (the refs are named <remotename>/<branchname> - eg origin/master ). 只需使用git fetch ,然后浏览下拉的各种引用(这些引用名为<remotename>/<branchname> -例如origin/master )。

# Fetch an updated list of commits from the remote, without merging
$ git fetch origin

# View the log output for the version of 'master' we just fetched from 'origin'
$ git log origin/master

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM