How to git clone in VS code while remote with .gitconfig is not a directory error GIT克隆.gitconfig 报错
1.当我在VSCODE中使用ssh远程访问我的docker Container时使用git clone发生如上错误
2.在terminal中(remote后的)sudo rm -rf /root/.gitconfig
删除已有的gitconfig, 这属于错建了一个文件地址
3.git config --global user.name “Your Name”
replacing “Your Name” with your actual name. This will create a new ~/.gitconfig file with your name as the default user.
这里我用了wenting 在我git clone的时候让我选择了home/wenting的目录
4.Type git config --global user.email “you@example.com” and press Enter, replacing “you@example.com” with your actual email address. This will add your email address to the ~/.gitconfig file as well