问题描述
时有可能得到提交日志/远程混帐回购协议的消息,而无需混帐克隆?
Is it possible to get commit logs/messages of a remote git repo without git clone?
在混帐回购协议我一起工作是巨大的,即使我运行混帐--depth克隆= 1仍需要一段时间,我可以克隆它。
The git repo I am working with is huge, even if I run git clone with --depth=1 still takes sometime before I am able to clone it.
我要寻找这样的事情,
git的远程日志。
我也期待在与git -ls-遥控器,仅提供SHA和首脑/标签。我感兴趣的是获得最后2题提交,提交用户和提交SHA?
I have also looked in to git -ls-remote, which only provides the SHA and the Heads/tags. I am interested in getting the last 2 commit title, commit user and commit SHA?
任何人都知道该怎么做?
Anyone know how to do that?
推荐答案
如果您想看到一个分支的最后几次提交,请尝试:
If you are looking to see the last few commits of a branch, try:
git clone -b [branch name] --single-branch [repo url] --depth=3
这将克隆仅在分支你有兴趣在过去3提交。一旦这样做,你可以进入克隆回购和查看历史记录。
This will clone only the last 3 commits on the branch you are interested. Once done you can get into the cloned repo and view the history.
这篇关于是否有可能得到承诺的远程混帐回购协议的日志/邮件而不混帐克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!