git

Remove first commit

A-B-C –> AB-C

1
git rebase -i A

It is possible to start like that if you continue with edit rather than squash:

1
2
edit e97a17b B
pick asd314f C

then run

1
2
3
git reset --soft HEAD^
git commit --amend 
git rebase --continue

Find deleted file path

1
git log --diff-filter=D --summary | grep delete

Find deleted file commit

1
git log --all -- <path-to-file>