Imagine that everytime I commit files, before I push them, I\'d like to list them to check. How may I do that ?
I tried:
git ls-tree -r --name-only m
As you say before the push, can i supposing that your work flow is git add then git commit then git push.
You can do the commit with the --short option link!
This will give you a output of all files change, add or delete in your that currently commit.
git commit --short -m "message for the commit"