https://github.com/moliva/git-utils
A set of git util commands for the man's pocket and the lady's purse.
https://github.com/moliva/git-utils
git utilities
Last synced: 7 months ago
JSON representation
A set of git util commands for the man's pocket and the lady's purse.
- Host: GitHub
- URL: https://github.com/moliva/git-utils
- Owner: moliva
- Created: 2017-07-17T21:11:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T20:20:48.000Z (over 6 years ago)
- Last Synced: 2025-04-04T22:02:08.796Z (8 months ago)
- Topics: git, utilities
- Language: Shell
- Homepage:
- Size: 795 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-utils
A set of git util commands _for the man's pocket and the lady's purse_.
## Usage
### review

In your local repo just type
```bash
git review # git review -u | --untracked to include untracked files
```
And one by one the diffs will be shown for each tracked file.
Make sure you got everything right for the current file and type either:
* `a` To add the current file to staging area
* `q` To quit the current diff and skip to the next one
* `Q` To quit the current diff and go back to the previous one
* `i` To ignore the remaining files and go back to the command line interface
* `o` To reset changes for the current file
Now everything you've got to do is `commit` and `push` what's already staged. :neckbeard:
More options:
* `-u, --untracked` Adds untracked files to the files being reviewed as if adding with git add -N
* `-s, --status` Prints git status after the changes are finished been reviewed
* `-c, --commit` Prompts the user to write a commit message and commits the current staging after the review is done
## Installation
### Using curl
```bash
sh -c "$(curl -fsSL https://raw.github.com/moliva/git-utils/master/scripts/install.sh)"
```
This will automatically clone this repo into `~/.git-utils` and create a symlink from `/usr/local/bin/git-review`. _Voilà !_