Find the last file entered

Using Git, how can I find a new file?

Note that this is not the same as the last modified file, but the last time the file was submitted.

+4
source share
1 answer
git log --diff-filter=A

This shows the commits that entered the file. It can be changed to show only the last commit by entering a file

git log --diff-filter=A -1

or print diff of this file

git log --diff-filter=A -p

or just stat

git log --diff-filter=A --stat

Example

+1
source

Source: https://habr.com/ru/post/1542594/


All Articles