使用git推送文件时,报错:
$ git push -u ceshi1 master
remote: xxx@xxx.com: Incorrect username or password (access token)
fatal: Authentication failed for 'https://gitee.com/xxx/ceshi1.git/'
从字面意思来看,是用户名密码不正确的意思
首先git本身是没有设置免密登录的,所以看下window系统设置
添加普通凭证
输入正确登录git的用户名与密码(我这里使用的是码云)
再重新git push成功
$ git push -u ceshi1 master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 200 bytes | 200.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-5.0]
To https://gitee.com/xxx/ceshi1.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'ceshi1'.