windows - 使用 git 在 Windows 中推送到 code.google.com

标签 windows git

相关问题: netrc not accepted by gitGit - How to use .netrc file on windows to save user and password

我正在尝试将更改推送到 code.google.com git 存储库。我正在使用 Git 扩展。我的 HOME 变量在 Windows 和 Git Bash 中都设置了。

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

$ echo $HOME
/c/Users/Username

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

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

显然用户名被我的用户名替换,GOOGLEGENERATED 是谷歌生成的密码。尝试推送时,我收到此错误消息:

C:\Program Files\Git\bin\git.exe push -u --recurse-submodules=check "origin" master:master Done fatal: remote error: Invalid username/password. You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings

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

最佳答案

.git/config 中的 origin 的 url 条目中删除 username@

关于windows - 使用 git 在 Windows 中推送到 code.google.com,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9491761/

相关文章:

windows - 有什么方法可以将 ls 从 Get-ChildItem 重新映射到 PowerShell 中的另一个命令吗?

windows - 无法在 Cygwin 中将 shell 脚本作为 KornShell 脚本执行

windows - 确定远程 Windows 计算机上的登录用户

git - Hudson git 未能将构建失败电子邮件发送至

git - 使用 gitk 查看 move 文件的完整历史记录

mysql - 无法连接

c++ - 所有的 GUI 框架都使用 Windows API 吗?

git - 带有 git 子模块的密码存储

Git递归地忽略将子目录中的所有文件列入白名单

git - git rebase 和 merge --no-ff 有什么区别