All Projects → jpwilliams → gitree

jpwilliams / gitree

Licence: MIT License
Print a directory tree that shows Git status and ignores files dictated by .gitignore.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gitree

gtree
Output tree🌳 or Make directories📁 from #Markdown or Programmatically. Provide CLI, Golang library and Web (using #Wasm ).
Stars: ✭ 88 (+175%)
Mutual labels:  tree, directory
Repository Tree
🌲Pretty display directory tree view of a GitHub repository.
Stars: ✭ 56 (+75%)
Mutual labels:  tree, directory
directory-structure
📦 Print a directory tree structure in your Python code.
Stars: ✭ 40 (+25%)
Mutual labels:  tree, directory
Nanomorph
🚅 - Hyper fast diffing algorithm for real DOM nodes
Stars: ✭ 621 (+1840.63%)
Mutual labels:  diff, tree
Json Git
A pure JS local Git to versionize any JSON
Stars: ✭ 109 (+240.63%)
Mutual labels:  diff, tree
Deepdiff
Deep Difference and search of any Python object/data.
Stars: ✭ 985 (+2978.13%)
Mutual labels:  diff, tree
Tree Node Cli
🌲 Node.js library to list the contents of directories in a tree-like format, similar to the Linux tree command
Stars: ✭ 102 (+218.75%)
Mutual labels:  tree, directory
Dsladapter
🔥 Kotlin时代的Adapter, Dsl 的形式使用 RecyclerView.Adapter, 支持折叠展开, 树结构,悬停,情感图状态切换, 加载更多, 多类型Item,侧滑菜单等
Stars: ✭ 231 (+621.88%)
Mutual labels:  diff, tree
fsify
Convert an array of objects into a persistent or temporary directory structure.
Stars: ✭ 24 (-25%)
Mutual labels:  tree, directory
npmfs
javascript package inspector
Stars: ✭ 90 (+181.25%)
Mutual labels:  diff
Voila
Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way.
Stars: ✭ 78 (+143.75%)
Mutual labels:  directory
vue-sortable-tree
vue tree draggable, drag item sort
Stars: ✭ 87 (+171.88%)
Mutual labels:  tree
tree.hh
An STL-like C++ header-only tree library
Stars: ✭ 79 (+146.88%)
Mutual labels:  tree
diff-check
Incremental code analysis tools based on checkstyle, pmd and jacoco
Stars: ✭ 48 (+50%)
Mutual labels:  diff
PageStatusTransformer
A low invasive state management on Android
Stars: ✭ 12 (-62.5%)
Mutual labels:  status
vcdiff
Heavily optimized .NET Core vcdiff library
Stars: ✭ 16 (-50%)
Mutual labels:  diff
AlgoDaily
just for fun
Stars: ✭ 118 (+268.75%)
Mutual labels:  tree
robotframework-difflibrary
Robot Framework keyword library that will provide Diff capabilities
Stars: ✭ 23 (-28.12%)
Mutual labels:  diff
files
Useful methods to manage files and directories
Stars: ✭ 27 (-15.62%)
Mutual labels:  directory
xmas-tree
XMAS Tree from stacked ws2812 rings driven by a Digispark
Stars: ✭ 22 (-31.25%)
Mutual labels:  tree

@jpwilliams/gitree

Print a directory tree that shows Git status and ignores files dictated by .gitignore.

$ npm i -g @jpwilliams/gitree
$ gitree

# OR

$ npx @jpwilliams/gitree

What?

gitree works very similarly to tree but only lists files related to the current git repository.

Like Git, gitree only tracks files, so empty directories will never be listed. If you wish to push an empty folder to a Git repository, add an empty .gitignore or .gitkeep file to the directory and commit it.

What does it show?

gitree shows any files that your repository's .gitignore files allows you to see, marking them with useful statuses like the ones in the screenshot above.

What if it's not a Git repository?

It won't work. You must be somewhere within a Git repository to list any files. If you just want a basic tree view without Git integration, consider the built-in tree command for Linux/Windows or the tree homebrew formula for Mac OSX.

What else can it do?

Just this stuff:

Usage: gitree [options] [dir]


Options:

  -V, --version           output the version number
  -m, --modified          only show modified files
  -t, --tracked           only show tracked files
  -c, --collapse          collapse directory nodes that contain a single child
  -d, --devicons          print matching devicons next to files
  -I, --ignore <pattern>  do not list files that match the given pattern
  -h, --help              output usage information

Note that for devicons to work, you must have a font with devicon glyphs installed. A good place to start is Nerd Fonts.

Can it get any cooler?

There's a built-in alias, gt. Fantabulous, eh?

Alternatives

The wonderful ogham/exa can print a similar tree without detailed change information/filtering with:

exa --git-ignore --tree --all --icons --ignore-glob .git
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].