Files
30-seconds-of-code/snippets/view-commit-graph.md
Angelos Chalaris 1397bb792e Deprecate expertise
2022-12-04 22:23:55 +02:00

24 lines
625 B
Markdown

---
title: View a visual graph of the repository
tags: repository
author: maciv
cover: blog_images/city-view.jpg
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a visual graph of all commits and branches in the repository.
- Use `git log --pretty=oneline --graph --decorate --all` to view a visual graph of the whole repository's history.
- Use arrow keys to navigate, press <kbd>Q</kbd> to exit.
```shell
git log --pretty=oneline --graph --decorate --all
```
```shell
git log --pretty=oneline --graph --decorate --all
# * 3050fc0de Fix network bug
# * c191f90c7 Initial commit
```