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 :).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With