hey, that's a very useful trick indeed!
i suggest all try it
On the other hand, with the tilde, it will just start wiping your personal files right away and will probably not run into any permission errors.
$ git clone git@github.com:dotfiles '$HOME'
Cloning into '$HOME'...
*ugh...*
$ rm -rf $HOME
*wait...*
$ cd $HOME
cd: no such file or directory: /Users/admin
*fuuuuuuuu*