原因有两个:
- 没有擦除mac自身记忆的密码串
- 提交对象弄错。把提交地址写错,应该是git方式,误写成htts方式了。
git修改提交user和email方法:
- 使用指令修改:
git config –global user.name “name” –name是修改后的名字,去掉双引号
git config –global user.email “email” –email是修改后的邮箱地址,去掉双引号 - 修改配置文件。
在用户目录下:/home/username/,修改.gitconfig文件中对应的用户名和密码。
- 使用指令修改:
mac中擦除密钥串的方法:
使用指令:git credential-osxkeychain erase
git更改提交用户名报错:remote: Permission to EvoIos/standford_ios_7_lecture.git denied to xxx
最新推荐文章于 2024-04-20 17:11:36 发布