ubuntu下安装git和配置
sudo apt update
sudo apt install git
配置用户和邮箱
git config --global user.name "your name"
git config --global user.email "xxx@163.com"
设置保存用户名和密码:
git config --global credential.helper store
git清除用户名密码:
git config --global credential.helper wincred
git credential-manager uninstall
wsl问题
wsl中git不一致问题可以通过修改wsl中的git配置
git config --global core.filemode false # 文件权限
git config --global core.autocrlf true # 换行符