Merge pull request #20 from samarpanda/file_directory

Git Files
This commit is contained in:
hemanth.hm 2015-07-28 22:47:00 +05:30
commit b76f3c9e53
2 changed files with 20 additions and 0 deletions

View File

@ -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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -221,5 +223,15 @@ __Alternatives:__
git stash drop <stash@{n}>
```
## Show all tracked files
```sh
git ls-files -t
```
## Show all untracked files
```sh
git ls-files --others
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -126,5 +126,13 @@
"title": "Delete all stored stashes",
"tip": "git stash clear",
"alternatives": ["git stash drop <stash@{n}>"]
},
{
"title":"Show all tracked files",
"tip":"git ls-files -t"
},
{
"title":"Show all untracked files",
"tip":"git ls-files --others"
}
]