How to view the nested workflow of a local git repository?

0 votes
I have several branches in my local git repository, I wanted a visual representation of the git branch nesting structure. Is there a way to do this?
Jul 4, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
88 views

2 answers to this question.

0 votes

The ‘git log’ command is your closest option to view the local branches in a tree like structure.

Use the following command, it will arrange the commits in a hierarchical manner.

git log --graph --simplify-by-decoration --pretty=format:'%d' --all

However, if you’re more specific about the look of your branching workflow rather than the commits, use the following command.

git log --decorate --all --graph --simplify-by-decoration --topo-order --date=short --format='%h [%cd]%d %s'
answered Jul 4, 2018 by Sophie may
• 9,870 points
0 votes

The closest way to view branches in a tree like structure is using the git log command.

git log --graph --simplify-by-decoration --pretty=format:'%d' --all
answered Aug 2 by Sirajul
• 38,820 points

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

How to solve the ‘Git commit -a error’?

This happens when no editor is set. ...READ MORE

answered Jul 5, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
73 views
0 votes
1 answer

How to get the files from the local desktop to the local repository?

Hey @Ali, Follow these steps to transfer ...READ MORE

answered Dec 17, 2018 in Git & GitHub by Arohi
36 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
216 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to forcefully commit a file to Git even if the file is ruled as unchanged?

This is simple, just follow the below ...READ MORE

answered Jul 11, 2018 in Git & GitHub by Sophie may
• 9,870 points
52 views