How to git clone in VS code while remote with .gitconfig is not a directory error GIT克隆.gitconfig 报错

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值