git-clone: split up long &&-command-chain and use a function for cleanup