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上的一致。

如果错过太阳时你流了泪,那你也要错过群星了。
在所有的矛盾中,要优先解决主要矛盾,其他矛盾也就迎刃而解。
不要做个笨蛋,为失去的郁郁寡欢,聪明的人,已经找到了解决问题的办法,或正在寻找。
原文地址:https://www.cnblogs.com/szrs/p/15261398.html