用git log --decorate显示限制参考 [英] Limit refs shown with git log --decorate
问题描述
我使用以下方式定期监控分支机构:
git log --graph --oneline --decorate -15 my-branch his-repo / his-branch master other-branch
- 装饰
至关重要,因为它让我知道关于我们非常动荡的发展部门的事态。问题是我看到远程引用的 全部 和分支,标签等中的 全部 装饰。
有没有办法限制 - 装饰
只输出某些裁判?在命令行列出refs仅限制显示的提交,而不是显示的ref。
谢谢,
Mike
你不能限制这种开箱即用的功能。但是,没有任何东西可以阻止你对.git / refs的操作进行脚本编写,然后立即恢复它:)。
I have 3 standard remotes for a the main repository I work in currently: a local backup, my development partner's workstation, and a hosted repository. We have 3 or 4 branches that are active most of the time, one being master.
I monitor the branches on a regular basis throughout the day using:
git log --graph --oneline --decorate -15 my-branch his-repo/his-branch master other-branch
--decorate
is crucial because it lets me know the state of things in regards to our very volatile development branches. The problem is that I see all of the remote refs and all of the branches, tags, etc. in the decoration.
Is there any way to limit --decorate
to only output certain refs? Listing the refs on the command line only limits the commits shown, not the refs shown.
Thanks, Mike
You cannot limit this out-of-the box. But nothing is stopping you from scripting the manipulation of .git/refs and then restoring it right after :).
这篇关于用git log --decorate显示限制参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!