git SmartGit Hg“身份验证失败”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18020645/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SmartGit Hg "Authentication Failed"
提问by Wylan Osorio
Hi already used smartGit Hg a couple of months. I have already account in bitbucket which I used already couple months already also. When I created another account in bitbucket then cloned the current repository to the smartGit. When I tried to commit and pushed (ofcourse it will ask for password), it says "Authentication Failed". Please help...THanks in advance..
您好,已经使用 smartGit Hg 几个月了。我已经在 bitbucket 中注册了我已经使用了几个月的账户。当我在 bitbucket 中创建另一个帐户时,将当前存储库克隆到 smartGit。当我尝试提交和推送时(当然它会要求输入密码),它显示“身份验证失败”。请帮助...提前致谢...
回答by Mikael Chudinov
SmartGit probably remember a wrong account credentials to authenticate you on BitBucket. Goto Edit menu -> Preferences -> Authentication and remove credentials for the repository that fails. Then next time you push SmartGit will ask you for both login and password.
SmartGit 可能会记住错误的帐户凭据以在 BitBucket 上对您进行身份验证。转到编辑菜单 -> 首选项 -> 身份验证并删除失败的存储库的凭据。然后下次你推送 SmartGit 时会要求你输入登录名和密码。
回答by Aljohn Yamaro
This works for me. Go to Edit>Preferences>Hosting Providers. On your Hosting Providers(I use Bitbucket for example) selectit, click deleteand click add. Select hosting, click Generate API Tokenautomatically opens browser and generates token then copygo back to your smartgit then pastethe token and finally click add
这对我有用。转到编辑>首选项>托管提供商。在您的托管服务提供商(例如我使用 Bitbucket)上选择它,单击删除并单击添加。选择托管,单击生成 API 令牌自动打开浏览器并生成令牌然后复制回到您的 smartgit 然后粘贴令牌,最后单击添加
回答by Amy Doxy
None of the answers given ended up resolving my issue on SmartGit.
给出的答案都没有最终解决我在 SmartGit 上的问题。
I went in Edit ->Preferences -> Authentication but the list of known credentials was empty so was the list of Hosting Providers.
我进入了编辑 -> 首选项 -> 身份验证,但已知凭据列表是空的,托管提供商列表也是空的。
The reason was that SmartGit was storing my credential in Windows Credential Manager.
原因是 SmartGit 将我的凭据存储在 Windows 凭据管理器中。
To resolve the issue, I went to Control Panel -> Credential Manager -> windows Credentials, select the specific credential you wish to update and choose to edit it and then update your credentials
为了解决这个问题,我去控制面板 -> 凭据管理器 -> windows 凭据,选择你想要更新的特定凭据并选择编辑它,然后更新你的凭据
回答by raterus
I was getting a similar error while authenticating with Git over HTTPS, after much frustration I uninstalled SmartGit and deleted everything in my SmartGit AppData folder.
我在通过 HTTPS 使用 Git 进行身份验证时遇到了类似的错误,在非常沮丧之后,我卸载了 SmartGit 并删除了 SmartGit AppData 文件夹中的所有内容。
(on Windows Delete c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo\SmartGit)
(在 Windows 上删除c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo\SmartGit)
Once I reinstalled, all worked fine.
一旦我重新安装,一切正常。
回答by Frosty Z
In my case, myaccount@
at the beginning of the repository URL was missing.
就我而言,myaccount@
在存储库 URL 的开头丢失了。
After selecting and opening the repository on the left pane, I had to click on the Remotemenu, then Properties....
在左侧窗格中选择并打开存储库后,我必须单击Remote菜单,然后单击Properties...。
In the field URL or path, I had something like https://github.com/org/repo.git
, and I modified it to https://[email protected]/org/repo.git
. It asked my password and... bingo.
在URL 或路径字段中,我有类似的内容https://github.com/org/repo.git
,并将其修改为https://[email protected]/org/repo.git
. 它询问我的密码和...宾果游戏。
回答by Larisa Boiko
I used these SmartGit troubleshoot recommendations: http://www.syntevo.com/doc/pages/viewpage.action?pageId=6979745
我使用了这些 SmartGit 故障排除建议:http: //www.syntevo.com/doc/pages/viewpage.action?pageId=6979745
Specifically, I simply redid pull / fetch of each origin from the GIT-Shell tool. It worked, and then SmartGit started to accept credentials just OK.
具体来说,我只是从 GIT-Shell 工具中重新执行了每个来源的 pull/fetch。它起作用了,然后 SmartGit 开始接受凭据就好了。
Previous on these thread recommendations did not work for me, and I did not want to reinstall SmartGit.
以前在这些线程上的建议对我不起作用,我不想重新安装 SmartGit。
In Git-Shell:
在 Git-Shell 中:
1 git pull origin1 branch
2 git pull origin2 branch
回答by Jeremy
An easier approach to re-installing, but you will need to set it up again.
一种更简单的重新安装方法,但您需要重新设置。
Delete: c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo
删除: c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo
Once you re-launch SmartGit, it may noticed an issue with the credential helper. If so, then force it to use SmartGit by adding this to your .gitconfig
重新启动 SmartGit 后,它可能会注意到凭证助手存在问题。如果是这样,那么通过将其添加到您的.gitconfig
[credential]
helper=
That file is located: c:\Users\{YOUR_USER_NAME}\.gitconfig
该文件位于: c:\Users\{YOUR_USER_NAME}\.gitconfig
Re-launch SmartGit, do a PULL and it will prompt you to set a Master Password. Once complete, it will then ask you for the project credentials.
重新启动 SmartGit,执行 PULL 操作,它会提示您设置主密码。完成后,它会要求您提供项目凭据。