Git log placeholder for branch

Add the git log --decorate and it will display branches, tags etc.

  • If you want to log to display the graph as well you can add the --graph
  • If you use uxin based OS you can use this .githelpers

From the log documentation:

--decorate [=short|full|no]

Print out the ref names of any commits that are shown. If short is specified, the ref name prefixes refs/heads/, refs/tags/ and refs/remotes/ will not be printed. If full is specified, the full ref name (including prefix) will be printed. The default option is short

Output of the .githelprs script:

enter image description here

Tags:

Git