Win10 配置 Git SSH
復(fù)制 id_rsa 和 id_rsa.pub 到 C:\Users\your_user_name\.ssh\
WSL Ubuntu 切換到阿里鏡像
sudo cp /etc/apt/sources.list /etc/apt/sources.list.20200316
sudo vi /etc/apt/sources.list
:%s/security.ubuntu/mirrors.aliyun/g
:%s/archive.ubuntu/mirrors.aliyun/g
sudo apt update
sudo apt upgrade
Bash 腳本錯誤
錯誤信息
$'\r': command not found
解決方法
sudo apt install dos2unix
dos2unix imp-db.sh
./imp-db.sh
參考資料
Setting up SSH and Git on Windows 10
修改 WSL Ubuntu 18.04 默認(rèn)源為阿里云鏡像
How do I fix “$'\r': command not found” errors running Bash scripts in WSL?