This repo contains different edge cases that can happen when syncing a git repository into another one under a different path plus you ignore parts of it.
git clone https://github.com/premun/git-patch-test
cd git-patch-test
.\build-containers.ps1
.\run-tests.ps1
.\run-tests.ps1 -Case 4