Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm authored Jan 10, 2020
1 parent 3233552 commit 5009b8e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# clean-repo-check
Simple check to make sure a repo is clean. Useful in CI environments, and for automatic updates

## Installation

You probably want to install this as a dev dependency. So for php projects:

```sh
composer require --dev nymedia/clean-repo-check
```

## Usage

```sh
/bin/sh ./path/to/clean-repo-check.sh
```

This will exit with status 1 if your repo has either

- Changed files
- Uncommited files

It will also print git status, so it can help you fix the issues.

0 comments on commit 5009b8e

Please sign in to comment.