Is there a way to completely reset the local repo (discard all locally changed, new or deleted files) and replace it with the remote repo with dulwich.porcelain? I almost managed it using reset, clean and pull. However, I have troubles with deleted files in the remote repo - which are not deleted locally.
It seems that this a known bug in dulwich (https://github.com/dulwich/dulwich/issues/452). I still wanted to know, if someone could help me finding a workaround/solution for this problem?
Issue #452 is unrelated to this - clean() should remove deleted files. Please file a bug with a way to reproduce this specific issue.