“git push"时遇到的"assword authentication is not available for Git operations."
2018-01-24 11:53
2291 查看
先说说我遇到的问题。
之前每次用git的流程比较有趣,也是因为想着能偷懒就偷懒。
前提:已经安装了git;
1)在github网页上新建一个repository。
2)用github desktop,将这个repository“clone”下来。
3)在本地clone下来的文件中,添加新的文件夹及文件。(这时候要注意,如果只是新建文件夹并且这个文件夹内没有文件,那么之后的git add . 命令会出问题。所以必须有问题件)
4)在当前repository打开cmd,先用命令”git add .“。可以达到,识别自己更新的文件结构,及增添文件的效果。
5)继续命令,”git commit “。执行commit过程。
6)可以继续命令,”git push“。也可以通过desktop中的push按钮。
但是,这样的流程,用命令看起来不太好用吧。所以,同事墙裂推荐用”vscode“,这个集成了git。还是可视化界面,拖拽和鼠标点击几乎就能完成上述流程。
有点小插曲,所以要写下来这个问题。
我的电脑是windows7系统。所以说,可能别的电脑不会遇到这个问题。
每次安装git,在系统control panel->user accounts->credential manager->generic credentials->(会生成一个与git相关的账户密码,如下图)
它会默认你的windows的账号密码,作为验证git的账号密码。可是呢,我知道说,git用的是token。这里就很奇怪了,之前一直用的windows的账号密码,用的是上述的git使用过程,都不会提示说。
我也很郁闷,这次用了vs code用push就会提示。查找了半天,原来是,windows在装git时候默认的账号和密码。这个时候,我这里只修改了windos的密码,改为git的token,这个时候就可以push了。
心酸呀,折腾了半天~~
之前每次用git的流程比较有趣,也是因为想着能偷懒就偷懒。
前提:已经安装了git;
1)在github网页上新建一个repository。
2)用github desktop,将这个repository“clone”下来。
3)在本地clone下来的文件中,添加新的文件夹及文件。(这时候要注意,如果只是新建文件夹并且这个文件夹内没有文件,那么之后的git add . 命令会出问题。所以必须有问题件)
4)在当前repository打开cmd,先用命令”git add .“。可以达到,识别自己更新的文件结构,及增添文件的效果。
5)继续命令,”git commit “。执行commit过程。
6)可以继续命令,”git push“。也可以通过desktop中的push按钮。
但是,这样的流程,用命令看起来不太好用吧。所以,同事墙裂推荐用”vscode“,这个集成了git。还是可视化界面,拖拽和鼠标点击几乎就能完成上述流程。
有点小插曲,所以要写下来这个问题。
我的电脑是windows7系统。所以说,可能别的电脑不会遇到这个问题。
每次安装git,在系统control panel->user accounts->credential manager->generic credentials->(会生成一个与git相关的账户密码,如下图)
它会默认你的windows的账号密码,作为验证git的账号密码。可是呢,我知道说,git用的是token。这里就很奇怪了,之前一直用的windows的账号密码,用的是上述的git使用过程,都不会提示说。
我也很郁闷,这次用了vs code用push就会提示。查找了半天,原来是,windows在装git时候默认的账号和密码。这个时候,我这里只修改了windos的密码,改为git的token,这个时候就可以push了。
心酸呀,折腾了半天~~
相关文章推荐
- 调用app出现"This app is not allowed to query for scheme..."
- Spring Boot中使用Feign调用时Hystrix提示异常:"could not be queued for execution and no fallback available."以及"Rejected command because thread-pool queueSize is at rejection threshold"
- 遇到问题:push的时候出现fatal: Authentication failed for 'https://git.oschina.net/andthink/zsxw_android.git/'问
- asp.net在发送邮件时出现"服务器响应为: You are not authorized to send mail, authentication is required "解决方案
- "this class is not key value coding-compliant for the key ..."问题的解决(转)
- "Project is not a Java project" 之新建Maven项目遇到问题解决方案
- Required content for platform tvOS Simulator is missing. unable to find utility "git", not a develop
- "this class is not key value coding-compliant for the key ..."问题的解决
- 启动MyEclipse出现"Source not found for JdbcOdbcDriver.finalize() line: not available"解决
- "Cant start Git: git.exe probably the path to Git executable is not valid" Fix it." error
- WinServer 之 发布WebService后调用出现" The test form is only available for requests from the local machine. "
- install.packages("simpleaffy") 报错package ‘simpleaffy’ is not available (for R version 3.3.1)
- "The test form is only available for requests from the local machine"解决方法
- How to solve "The installation source for this product is not available" problem?
- "The test form is only available for requests from the local machine"解决方法
- authentication list "default" is not defined for PPP
- "package gcc-4.4 is not available, but is referred to by another package", 安装gcc时出错的解决方法
- 遇到问题:Open quote is expected for attribute "{1}" associated with an element type "property".
- Asp.Net 之 WebService部署到服务器后出现" The test form is only available for requests from the local machine "
- 【spring】——错误提示:Open quote is expected for attribute "{1}" associated with an element type "id".