Find who added a file to git repo
To find which user and when a file gets committed to a git repository, you can use the command
1 |
git log --diff-filter=A -- FILE_NAME_HERE |
For example
1 2 3 4 5 6 7 |
boby@sok-01:~$ git log --diff-filter=A -- global_evildoer.php commit 263f547cecba129b14faeb412b33ef43c678cced Author: php user <user@gmail.com> Date: Fri Nov 18 23:27:01 2022 -0800 brunch changes boby@sok-01:~$ |
Back to git