Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Know which files were created, modified or deleted in a commit

Tags:

git

I am currently trying to display information about a specific commit in my application.

I want to know if these files were created, modified or deleted in this commit, but if I use git show, the information I get will be the number of lines deleted or added.

like image 544
Martin Blondel Avatar asked Nov 26 '25 02:11

Martin Blondel


1 Answers

I believe adding the --name-status option will show you want you want.

Git docs: git-show

like image 139
Jamie Bisotti Avatar answered Nov 27 '25 19:11

Jamie Bisotti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!