Automatically cleanup stale worktrees and lock files upon a push
git 2.16 will fail badly if there are stale worktrees. This cleanup will remove stale lock files and worktrees.
Depends upon gitaly!648 (merged)
Closes #44115 (closed)
Edited by Stan Hu