在Windows中使用git推送到code.google.com [英] Push to code.google.com in windows using git

查看:58
本文介绍了在Windows中使用git推送到code.google.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关问题: netrc不被git接受我正在尝试将更改推送到code.google.com git存储库.我正在使用Git扩展.在Windows和Git Bash中都设置了我的HOME变量.

I am trying to push changes to a code.google.com git repository. I am using Git Extensions. My HOME variable is set in both Windows and Git Bash.

C:\> echo %HOME%
C:\Users\Username

$ echo $HOME
/c/Users/Username

我已经在%HOME%中添加了一个名为_netrc的文件

And I have added a file in %HOME% called _netrc

machine code.google.com
login username@gmail.com
password GOOGLEGENERATED

很明显,用户名已替换为我的用户名,而GOOGLEGENERATED是Google生成的密码.尝试推送时,出现以下错误消息:

Obviously Username is replaced by my username and GOOGLEGENERATED is the google generated password. When attempting to push, I get this error message:

C:\ Program Files \ Git \ bin \ git.exe push -u --recurse-submodules =检查来源" master:master完成致命的:远程错误:无效用户名密码.您可能需要使用生成的googlecode.com密码;参见 https://code.google.com/hosting/settings

相关问题表明,一切均已正确设置,但仍无法正常工作.有什么想法吗?

The related questions suggest that everything is setup properly, but it is still not working. Any ideas?

推荐答案

从url条目中删除用户名@以作为 .git/config

Remove username@ from the url entry for origin in .git/config

这篇关于在Windows中使用git推送到code.google.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆