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,700 points
1,601 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
• 10,620 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, 2019 by Sirajul
• 59,230 points

Related Questions In Git & GitHub

+1 vote
1 answer

How to view the change history of a file using Git versioning?

Hi@akhtar, You can use gitk for this task. ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,460 points
1,045 views
0 votes
1 answer

How do I go to a particular version of a file in the Git repository?

Hi@akhtar, You can use git checkout <sha1> to check ...READ MORE

answered Jan 5, 2021 in Git & GitHub by MD
• 95,460 points
2,907 views
0 votes
1 answer

How to change the URL for a remote Git repository?

Hi@akhtar, You can use the git remote command ...READ MORE

answered Nov 21, 2020 in Git & GitHub by MD
• 95,460 points
1,094 views
0 votes
1 answer
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 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
• 10,620 points
14,106 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP