0.02
Low commit activity in last 3 years
git-status-tree is a command line tool that shows git repository changes in a file tree.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

Build Status Gem Version

git-status-tree

git-status-tree (https://github.com/knugie/git-status-tree) is a command line tool that
helps you keeping track of changes in your git repository. Similar to the tree command
(https://github.com/nodakai/tree-command), git-status-tree recursively lists directories
and files. Run git tree in the command line to list all files in your git repository that are
untracked (?) or have been added (A), modified (M) or deleted (D). The colored output
shows whether a file has been added/staged (green)(+) or not (red). The current status
of each file is appended to it.

Example

image

Requirements

Install

gem install git-status-tree

Config

Set the indentation as you like, default is 4.

git config --global status-tree.indent <indent>

Uninstall

gem uninstall git-status-tree

Try it

gem install git-status-tree
git clone https://github.com/knugie/git-status-tree.git
cd git-status-tree
echo "change" >> README.md
echo "add untracked" > test/untracked.txt
rm DELETEME.txt
git add DELETEME.txt
echo "add staged" > test/staged.txt
git add test/staged.txt

git tree
.
├── test
│   ├── staged.txt (A+)
│   └── untracked.txt (?)
├── DELETEME.txt (D+)
└── README.md (M)

# reset repo
git reset HEAD --hard
git clean -xdf