github desktop使用问题(三)

 


前言

记录github desktop使用中常见问题。

一、常见问题

1.1github desktop登录及提交代码问题

1、登录失败

方式一

 方式二

 提示如下错误:

The server responded with an error while attempting to authenticate (404) Not Found
无法找到网页。可以通过4的方式登录。

2、提交代码失败,提示如下信息

复制代码
Commit failed - exit code 128 received, with output: '*** 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 'Administrator@w310-002.(none)')'
复制代码
解决方式:
在项目的根目录下有一个隐藏文件夹–.git,里面有一个config文件,利用记事本或什么什么的打开它,在文件的最后添加下面的代码:xxx换成自己的名字和邮箱地址,然后保存文件,再去提交OK啦!

 3、github上删除项目后,再次提交项目失败

从github上删除项目后,想要再次提交项目,需要删除本地项目的如图信息,才能再次通过github desktop提交到github上。因为配置文件中已经显示提交过了。实际在github上已经删除了,所以会提交失败。

 

 4、如果出现无法同步或没有权限,解决方法如下:用户名和密码一定要和github上的一致。

 

posted @   慎终若始  阅读(1008)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示