https://peterlavalle.github.io/post/git-copy-py/