Dustin Oprea
Dustin Oprea

Reputation: 10236

Is there a way for git-log to not show any tags and/or branches?

I am dealing with some projects that have do not have sourcecode among many other projects that have changing sourcecode. We also tag/branch all of the projects, together, over time. Therefore, the unchanging projects have a mountain of tags/branches on the tip commit. My current git is decorating the commits with tags/branches by default and, whereas this is usually preferable, the projects that have not changed in a very long time will have pages of tags/branches that need to be skipped over.

How can I run a git-log and not print tags/branches? I am primarily interested in hiding all of the tags, but I do not know what my options are.

Thanks.

Upvotes: 2

Views: 1752

Answers (1)

Schwern
Schwern

Reputation: 164809

The option to show branches and tags is --decorate. You can turn it off with --no-decorate. You can customize the format with --format. See git-log.

Upvotes: 11

Related Questions