How do you view the commit history of a repository in a graph format?
a)
git log --graphb)
git graphc)
git log --historyd)
git show --graphAnswer:
a)
git log --graphExplanation:
The git log --graph command displays the commit history in a graphical representation, showing branch structures and merges. It helps visualize the relationships between commits and branches.
This command is useful for reviewing the project’s commit history and understanding how branches have diverged and merged over time.