the command git clone https://github.com/TrueMyst/dotfiles.git ~ does not clone the repository inside the home directory but tries to replace the home directory and clones into ~. So it should be something like cd && git clone https://github.com/TrueMyst/dotfiles.git