May I list the files of the current commit?

后端 未结 3 1933
醉梦人生
醉梦人生 2021-02-09 18:27

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         


        
3条回答
  •  北海茫月
    2021-02-09 18:55

    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"

提交回复
热议问题