checking if git repo is connected