-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |