目录
1.fatal: unable to auto-detect email address
2.ubuntu git clone fatal: unable to access The requested URL returned error: 403
0.git常用命名
1.fatal: unable to auto-detect email address
错误产生说明:在使用git commit -m上传材料说明时,遇到问题:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'XXX@XXX-System-Product-Name.(none)')
解决方法1:
找到工程目录的.git文件夹,打开之后找到config文件,在最后边加上一句话
[user]
email = youremail
name = yourname
your email 和your name随便写上就行
解决方法2:
在终端输入:
# git config --global user.email “你的邮箱”
# git config --global user.name “用户名”
注意:方法一和方法二都可以使用一下,我在使用时,有时候只有方法一起作用;
2.ubuntu git clone fatal: unable to access The requested URL returned error: 403
报错原因:在上传lfs文件时,输入三次密码,中途使用ctrl+c中断了push过程
验证错误:在别人的机器可以clone下文件,在自己的机器上不行;
解决办法:下载已有git,重新安装git
3.git 安装和卸载
安装:
sudo apt-get install git
卸载:
sudo apt autoremove git