Search This Blog

Saturday, February 25, 2017

git show only staged files

git diff --name-only --cached

--name-only: show only file names
--cached: --cached is a synonym of --staged, so it means the staged and the latest commit that is ommited

https://stackoverflow.com/questions/33610682/git-list-of-staged-files

No comments:

Post a Comment

Blog Archive