diff --git a/README.md b/README.md index 52b51e5..f382da1 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ * [squash fixup commits normal commits.](https://github.com/git-tips/tips#squash-fixup-commits-normal-commits) * [skip staging area during commit.](https://github.com/git-tips/tips#skip-staging-area-during-commit) * [List ignored files.](https://github.com/git-tips/tips#list-ignored-files) +* [Status of ignored files.](https://github.com/git-tips/tips#status-of-ignored-files) @@ -611,5 +612,10 @@ git commit -am 'commit message' git check-ignore * ``` +## Status of ignored files. +```sh +git status --ignored +``` + diff --git a/tips.json b/tips.json index d6eb28c..b7bd46c 100644 --- a/tips.json +++ b/tips.json @@ -269,4 +269,7 @@ },{ "title": "List ignored files.", "tip": "git check-ignore *" +},{ + "title": "Status of ignored files.", + "tip": "git status --ignored" }]