
参照前文:
Windows11安装Linux子系统(Ubuntu22.04LTS)+安装ROS_Qomolangma_H的博客-CSDN博客
以管理员身份打开终端,输入以下命令:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
下载Ubuntu16.04
https://aka.ms/wsl-ubuntu-1604
双击安装

安装成功后

设置账户(字母需要小写)、密码(输入过程不显示)

Git - Downloading Package (git-scm.com)
官网龟速下载,镜像:
CNPM Binaries Mirror (npmmirror.com)
老生常谈:更改安装位置

注意勾选添加到windows终端

剩余步骤一路next即可,详情可参照
Git 详细安装教程(详解 Git 安装过程的每一个步骤)_git安装_mukes的博客-CSDN博客
sudo apt-get install git(如图,大多数情况默认已安装)

git --version

git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"建议安装最新的Git for Windows,以便在 WSL 和 Windows 主机之间共享凭据 & 设置。 Git 凭据管理器包含在 Git for Windows 中,最新版本包含在每个新的 Git for Windows 版本中。 在安装过程中,系统将要求你选择一个凭据帮助程序,并将 GCM 设置为默认值。
如果安装的 GIT 为 >= v2.39.0:(注意Git安装位置)
git config --global credential.helper "/mnt/e/Software/Git/mingw64/bin/git-credential-manager.exe"参照前文:
PyCharm专业版安装教程(使用jetbrains toolbox管理;学生认证、学信网验证码申请)_pycharm专业版csdn_QomolangmaH的博客-CSDN博客
File——Settings——Version Control——Git
文件——设置——版本控制
自动检测,点击“测试”会显示Git版本信息

File——Settings——Version Control——Github
文件——设置——版本控制





其中,URL为:
QomolangmaH/machine-learning (github.com)https://github.com/QomolangmaH/machine-learning

克隆成功:
