https://github.com/mucansever/gittree
cli tool for listing git branches in tree view
https://github.com/mucansever/gittree
branch git go golang
Last synced: 5 months ago
JSON representation
cli tool for listing git branches in tree view
- Host: GitHub
- URL: https://github.com/mucansever/gittree
- Owner: mucansever
- License: mit
- Created: 2023-02-01T13:50:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-12-30T23:21:03.000Z (6 months ago)
- Last Synced: 2026-01-12T05:32:38.054Z (6 months ago)
- Topics: branch, git, go, golang
- Language: Go
- Homepage:
- Size: 15.9 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gittree
`git branch -l` in tree view.
You can see which branch was created from which branch in a tree format, and checkout using the terminal UI.
Note that not all git branch relations will result in a tree due to cycles. I didn't handle this edge case just yet.
## Installation
``` bash
brew tap mucansever/gittree
brew install mucansever/gittree/gittree
```
## Usage
Run `gittree`
```bash
.
└── main (3d ago)
├── fix/important-bug (4h ago)
└── feat/feature-1 (3h ago)
└── chore/document-change* (30m ago)
```
If there is two of the same branch, all the children are duplicated. In below example, `feat/no-commit-branch` is a new branch from `main` without any commits.
```bash
.
├── main (3d ago)
│ ├── fix/important-bug (4h ago)
│ └── feat/feature-1 (3h ago)
│ └── chore/document-change (30m ago)
└── feat/no-commit-branch* (1d ago)
├── fix/important-bug (4h ago)
└── feat/feature-1 (3h ago)
└── chore/document-change (30m ago)
```
## Improvements
Please create an issue for any improvement that you might think of.