https://github.com/slammayjammay/git-checkout-file
Checkout files in git providing a substring to match.
https://github.com/slammayjammay/git-checkout-file
babel es6 git javascript nodejs
Last synced: about 2 months ago
JSON representation
Checkout files in git providing a substring to match.
- Host: GitHub
- URL: https://github.com/slammayjammay/git-checkout-file
- Owner: slammayjammay
- License: mit
- Created: 2017-02-02T01:24:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T03:45:53.000Z (almost 9 years ago)
- Last Synced: 2025-02-26T12:43:34.658Z (over 1 year ago)
- Topics: babel, es6, git, javascript, nodejs
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `git-checkout-file`
```sh
$ npm install -g https://github.com/slammayjammay/git-checkout-file
```
I like to alias this with "goof"
```sh
# in your .bash_profile
alias goof="git-checkout-file"
```
# Usage
Give a list of substrings to match files to. Matches are made case-insensitively. If any of them have uncommitted changes, those changes will be lost forever (dangerous!).
```sh
$ goof html # kills all changes in html files, for example
$ goof readme # kills all changes in the README
```
If you really messed up your repo and all uncommitted changes should be removed forever, you can do:
```sh
$ goof . # I personally use this all the time.
```