在新的电脑上装Git,记录下
安装
创建开始菜单目录名称,默认值就可以
建议选择默认的vim
这个页面是选择是否自定义默认分支的名字。对于以前版本的Git默认的分支名为master,现在可以进行自定义为别的分支名称。
我这里默认选择Let Git decide。
选择推荐的默认值
换行符处理
换行符在迁出时会自动转为CRLF,在提交时则会自动转为LF。
默认是第1个,我这里选择None
不勾选
安装成功
初始设置
git config --global user.name “your name”
git config --global user.email “your email”
git config --global color.ui auto
cd ~
cat .gitconfig
.gitconfig
[user]
name = your name
email = your email
[color]
ui = auto
转载:https://blog.csdn.net/kq1983/article/details/112204936
查看评论