Windows上安装git
1. 在官网https://git-scm.com/download/win上下载git安装包,双击安装;
2. 选择安装路径,默认即可;
3. 选择安装类型,推荐选择“Use Git from the Windows Command Prompt”;
4. 选择使用的文本编辑器,推荐选择“Use the Nano Editor by default”;
5. 选择“Windows Explorer integration”,勾选“Git Bash Here”,“Git GUI Here”,“Git Credential Manager”;
6. 选择“Extra Options”,勾选“Enable symbolic links”;
7. 点击“Install”,安装完成;
8. 打开“Git Bash”,输入下面命令,设置用户名和邮箱:
git config --global user.name "Your Name" git config --global user.email "your_email@example.com"
9. 安装完成,可以开始使用git了。