我如何显示超过最后3次提交? [英] How can I show more than the last 3 commits?

查看:90
本文介绍了我如何显示超过最后3次提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



git log -10 仍然只显示最后3次提交。



如何增加提交限制?

解决方案

浅拷贝仅包含您在克隆存储库时配置的提交日志深度。



如果您想用更深的提交历史记录更新您的浅拷贝,请运行:

  git fetch --depth =< number -of-提交> 

如果您想取消创建此存储库并从远程获取完整历史记录,请运行:

  git fetch --unshallow 

注意:取消确认您的回购可能需要一段时间,并且会导致更大的存储库大小。由于某种原因,团队建议克隆浅拷贝。


git log shows only last 3 commit though i have more-than 50 commit.

git log -10 still shows only last 3 commits.

How can i increase the commit limits?

解决方案

Shallow copies only carry over the commit log depth you configured when you cloned the repository.

If you want to update your shallow copy with a deeper commit history, run:

git fetch --depth=<number-of-commits>

If you want to unshallow this repository and get the full history from the remote, run:

git fetch --unshallow

Note: Unshallowing your repo may take a while and will result in a bigger repository size. Usually teams recommend cloning shallow copies for a reason.

这篇关于我如何显示超过最后3次提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆