window10系统安装git弹出提示
Unable to set system config "diff.astextplain.textconv":="astextplain" exit code 128
stderr:
fatal: could not open '/dev/nullfor reading and writing: No such file on directory
但是也会完成安装进程,但无法使用git,显示未响应
尝试过替换过C:\Windows\System32\drivers;用高版本和低版本git重新安装,都不行
想要成功安装并且使用
安装的不正确导致的
一、Git安装
1 下载Git
下载Git https://git-scm.com/downloads
2.安装
一路下一步
3.测试
点击git bash 图标
cmd git --version
4.注册 gitee 账号
只能使用使用手机号注册,绑定邮箱
要求:
1.注册名字一定要英文字母而且没有空格
2.一定要绑定邮箱
注册完成得到内容:
用户名
邮箱
密码
5基本配置
安装后,打开cmd ,自报家门
如下信息会在提交代码时要使用,记录在你的每次提交中。以后才知道哪次提交是谁做的。
git config --global user.name "Your Name" #用户名
git config --global user.email "email@example.com" #邮箱
git config -l
git config --global user.name "你自己注册用户名"
git config --global user.email "你的gitee 账号绑定的邮箱"
git config -l #查看配置
是不是里面有中文路径或者权限导致的
是不是本地有残留的git,没有卸载干净
可以重启一下电脑,在卸载安装
解决了吗?啥问题 我遇到和你一样的问题
想知道你的这个问题最后解决了吗 我也有这个问题