An open API service indexing awesome lists of open source software.

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.

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.
```