I staged a lot of files using git add
, now I want to see all the files I have staged, without untracked files or changed but unstaged files.
How do I do that? When using git diff --cached
I can see the changes of what I just staged. So then I tried using git status --cached
but that --cached
unfortunately doesn't work on git status
.
This question is related to
git
git-diff
git-status
git-stage
You can Try using :- git ls-files -s
Source: Stackoverflow.com