diff --git a/README.md b/README.md index f2f856e..a98cb4a 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ * [Apply any stash without deleting from the stashed list](https://github.com/git-tips/tips#apply-any-stash-without-deleting-from-the-stashed-list) * [Apply last stashed state and delete it from stashed list](https://github.com/git-tips/tips#apply-last-stashed-state-and-delete-it-from-stashed-list) * [Delete all stored stashes](https://github.com/git-tips/tips#delete-all-stored-stashes) +* [Show all tracked files](https://github.com/git-tips/tips#show-all-tracked-files) +* [Show all untracked files](https://github.com/git-tips/tips#show-all-untracked-files) @@ -221,5 +223,15 @@ __Alternatives:__ git stash drop ``` +## Show all tracked files +```sh +git ls-files -t +``` + +## Show all untracked files +```sh +git ls-files --others +``` + diff --git a/tips.json b/tips.json index 681a19f..f600b63 100644 --- a/tips.json +++ b/tips.json @@ -126,5 +126,13 @@ "title": "Delete all stored stashes", "tip": "git stash clear", "alternatives": ["git stash drop "] + }, + { + "title":"Show all tracked files", + "tip":"git ls-files -t" + }, + { + "title":"Show all untracked files", + "tip":"git ls-files --others" } ]