本文介绍了验证SourceTree与谷歌code项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我想使用最新版本的 SourceTree 与使用Git的一个谷歌code项目。问题是,当我尝试推的变化,它抱怨验证:I'm trying to use the latest version SourceTree with a Google Code project that uses Git. The problem is that when I try pushing the changes, it complains about authentication:混帐推-v --tags --set上游产地法师:法师结果  推至[项目]结果  致命的:远程错误:无效的用户名/密码结果。  您可能需要使用谷歌产生code.com密码;看到的https://$c$c.google.com/hosting/settings   完成但有错误,见上 git push -v --tags --set-upstream origin master:master Pushing to [project] fatal: remote error: Invalid username/password. You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings Completed with errors, see above我看不到在一个密码在设置任何地方进入的地方。我试图寻找 Atlassain的知识基础和谷歌,但我找不到任何相关信息。唯一的线索是来自谷歌的项目网页,其中说:I can't see a place to enter in a password anywhere in the settings. I tried searching Atlassain's knowledge base and Google but I couldn't find anything relevant. The only clue comes from Google's project page which says: 选项1 :获得[项目]库使用此命令的本地副本:结果  混帐克隆[项目]结果  把你的改变,你的谷歌帐户和谷歌产生code.com密码进行身份验证。结果  选项2 :随时关注的.netrc验证:结果  以下内容添加到您的.netrc。结果  机code.google.com登录[邮件]密码[谷歌产生code.com密码]结果  确保克隆URL不包含用户名:  混帐克隆[URL] Option 1: Get a local copy of the [project] repository with this command: git clone [project] To push your changes, authenticate with your Google Account and your generated googlecode.com password. Option 2: Stay authenticated with .netrc: Add the following to your .netrc. machine code.google.com login [email] password [generated googlecode.com password] Make sure the clone URL doesn't contain your username: git clone [url]还有的谷歌的另一个页面它说:有关Git仓库,你可以将下面的行添加到您的.netrc文件必须提交访问每个存储库域记录您的密码。确保您已设置的.netrc的权限,以便只有您的用户帐户可以读取它。 For Git repositories, you can add the following line to your .netrc file recording your password for each repository domain you have commit access to. Make sure you have set the permissions on .netrc so that only your user account can read it.机code.google.com登录[邮件]密码[密码] machine code.google.com login [email] password [password]在我升级到SourceTree的最新版本,这个问题才开始。有没有我可以在身份验证详细进入GUI的任何地方吗?我认为,在旧版本的GUI的选择,但我无法找到它了。我发现,让你在类似的东西输入的唯一的地方是在库的高级选项卡,或者主preferences的常规选项卡。然而,在这两种情况下,只要求一个电子邮件地址,而不是密码。This problem only started after I upgraded to the latest version of SourceTree. Is there any place in the GUI that I can enter in the authentication details? I believe that there was a GUI option in the old version, but I can't find it anymore. The only places I found that let you enter in something similar is in the Repository's advanced tab, or the General tab of the main preferences. However, in both instances, it only asks for an email address and not a password.推荐答案现在的问题是,默认情况下谷歌告诉(在的.git /配置),您使用的URL其中包括用户@部分。 SourceTree认为这并假定用户名在URL中的用户和没有密码。要解决此问题,只需删除URL中的用户@部分。然后,当你尝试推你的变化,SourceTree会提示输入用户名/密码。The problem is that by default Google tells (in .git/config) you to use a URL which includes the "USER@" portion. SourceTree sees this and assumes that the Username is the user in the URL and that there is no password. To fix the problem, simply remove the "USER@" portion in the URL. Then when you try pushing your changes, SourceTree will prompt for a username/password.例如,而不是: 的https://USER@$c$c.google.com/p/PROJECT/ 使用: 的https://$c$c.google.com/p/PROJECT/ 有关更多信息,请参见:https://answers.atlassian.com/questions/36585/entering-in-a-password-in-sourcetreeFor more info, see: https://answers.atlassian.com/questions/36585/entering-in-a-password-in-sourcetree 这篇关于验证SourceTree与谷歌code项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 17:19