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
44 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,330 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
31 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
19 views
+13 votes
2 answers
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,330 points
23 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.