fix bugs to clone a .git repo and configure git