Skip to content

Find a deleted file in the commit history

git log --all --full-history -- "**/thefile.*"
git log --all --full-history -- <path-to-file>
source

List of commits between branches

git log --oneline release-1..develop

Log with file list

git log --name-status

define parent branch

git log --pretty=format:'%D' HEAD^ | grep 'origin/' | head -n1 | sed 's@origin/@@' | sed 's@,.*@@'

find deleted file

git log --all --full-history -- '**/file.*'