[英]Setup git in wsl2 windows
How can I setup the git in wsl?如何在 wsl 中设置 git? I cannot get it setup我无法设置它
Tried installing and setting but getting error fatal: unable to access 'https://github.com
尝试安装和设置但出现fatal: unable to access 'https://github.com
sudo apt update
sudo apt update
sudo touch /etc/resolv.conf
sudo chmod 777 /etc/resolv.conf
sudo printf 'nameserver 8.8.8.8\nnameserver 4.4.4.4' > /etc/resolv.conf
sudo apt install git
通过sudo apt install git
git config --global --add safe.directory '*'
git config --global credential.helper store
(optional to store the credentials) git config --global credential.helper store
(可选存储凭据)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.