https://github.com/slammayjammay/git-diff-glob-cli
An easy way to diff files in the terminal.
https://github.com/slammayjammay/git-diff-glob-cli
babel cli-app es6 git javascript node terminal
Last synced: 3 months ago
JSON representation
An easy way to diff files in the terminal.
- Host: GitHub
- URL: https://github.com/slammayjammay/git-diff-glob-cli
- Owner: slammayjammay
- License: mit
- Created: 2017-01-12T23:27:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T06:45:37.000Z (over 9 years ago)
- Last Synced: 2025-10-26T05:02:25.649Z (8 months ago)
- Topics: babel, cli-app, es6, git, javascript, node, terminal
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `git-diff-glob-cli`
> An easy way to diff files in the terminal.
# Install
```sh
$ npm install -g git-diff-glob-cli
$ git-diff-glob --help
```
I also put this line in my `.bash_profile`
```sh
alias gd="git-diff-glob --pager"
```
# Usage
Provide a list of substrings for files you want the diff of. `git-diff-glob-cli` will get the diff of all files that match the substring (case-insensitively by default) and print them to the screen.
```sh
# grab diff of all files that match 'READ', e.g. `README.md`
$ git-diff-glob READ --case-sensitive
# grab diff of all '.html' files and output into a pager
$ git-diff-glob --pager html
```