An open API service indexing awesome lists of open source software.

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

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.