Failed to connect to gitee.com 或者是remote: Incorrect username or password ( access token )
Failed to or 或者 com access Token connect
2023-09-11 14:22:11 时间
问题
第一次使用 git ,执行这个命令时弹出了输入用户名和密码:
$ git push -u origin master
但是用户名和密码,我不太确定(使用了码云),于是随便输了一下用户名和密码,报错了,以后就一直报错
remote: Incorrect username or password ( access token ) fatal: Authentication failed for
在网上找解决的方法
我使用了命令:
解决办法:清除本地的gitee用户名和密码
git config --system --unset credential.helper
再执行推送,重新输入用户名和密码。
于是我就输了两次,正确了,之后就可以推了
git每次pull或push都要输入用户名和密码解决方法
git config --global credential.helper store
这个命令是在本地生成一个账号密码文件,这样就不用每次都输入了(但是还得输入一次)
这个指令对于windows,linux都是通用的!!!
可以通过命令
cat ~/.git-credentials
相关文章
- “failed to excute script xxx” PyInstaller 打包python程序为exe文件过程错误
- mpvue小程序加载不出图片 Failed to load local image resource
- keras 下载预训练模型报错SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
- Failed to execute operation: No such file or directory(systemctl enable iptables.service)
- java.lang.IllegalStateException: Failed to load ApplicationContext selenium 异常 解决
- frida环境问题解决Failed to enumerate processes: this feature requires an iOS Developer Disk Image to be mounted;
- GVM 21.4.3 Failed to find port_list '33d0cd82-57c6-11e1-8ed1-406186ea4fc5'
- remote: Coding 提示: Authentication failed问题解决
- WSL(Linux子系统) gedit 报错 failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
- [Kafka] |FAIL|rdkafka#producer-1 : Receive failed: Disconnected
- VM启动报错Cannot open the disk,Failed to lock the file
- FAILED: libcjson_shared.so unstripped/usr/lib/libcjson_shared.so
- Installation failed with message INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.datab.cn signatures
- 成功解决NotFoundError (see above for traceback): Failed to create a directory: ; No such file or directo
- 【已解决杀80端口】nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
- Android 签名问题记录MinSdkVersionException: Failed to determine APK‘s minimum supported platform version
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
- Xubuntu22l.04之libdvd-pkg: `apt-get check` failed(一百一十六)
- 解决办法:nohup: failed to run command ‘java‘: No such file or directory
- PAT 1033 To Fill or Not to Fill[dp]
- Failed to load JavaHL Library.
- 解决CentOS7关闭/开启防火墙出现Unit iptables.service failed to load: No such file or directory.
- Android的报错提示:Failed to resolve: io.reactivex.rxjava2:rxandroid:2.1.0
- IDEA报错java: Compilation failed: internal java compiler error
- 【已解决杀80端口】nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
- Win10解决Android Studio:Gradle sync failed: Failed to open zip file.
- 解决办法:git错误 error: failed to push some refs to 'https://github.com/...