安装和配置 Git本页总览安装和配置 Git Ubuntu 安装 Git 更新包索引: sudo apt update 安装 Git: sudo apt install git 验证安装: git --version 配置 Git 设置用户名: git config --global user.name "Your Name"