ubuntu下安裝git和配置
sudo apt update
sudo apt install git
配置用戶(hù)和郵箱
git config --global user.name "your name"
git config --global user.email "xxx@163.com"
設(shè)置保存用戶(hù)名和密碼:
git config --global credential.helper store
git清除用戶(hù)名密碼:
git config --global credential.helper wincred
git credential-manager uninstall
wsl問(wèn)題
wsl中g(shù)it不一致問(wèn)題可以通過(guò)修改wsl中的git配置
git config --global core.filemode false # 文件權(quán)限
git config --global core.autocrlf true # 換行符