Think before you speak, read before you think.

git 查看具体一次 commit 改动的文件

by

in

方法一:

git --no-pager log -n 1 --name-only ${COMMIT_SHA} 

方法二:

git --no-pager show --stat=1000,800 ${COMMIT_SHA}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *