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..
问题:
回答1:
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.
回答2:
This works for me. Go to Edit>Preferences>Hosting Providers. On your Hosting Providers(I use Bitbucket for example) select it, click delete and click add. Select hosting, click Generate API Token automatically opens browser and generates token then copy go back to your smartgit then paste the token and finally click add
回答3:
In my case, myaccount@
at the beginning of the repository URL was missing.
After selecting and opening the repository on the left pane, I had to click on the Remote menu, then Properties....
In the field URL or path, I had something like https://github.com/org/repo.git
, and I modified it to https://myaccount@github.com/org/repo.git
. It asked my password and... bingo.
回答4:
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.
(on Windows Delete c:\Users\{YOUR_USER_NAME}\AppData\Roaming\syntevo\SmartGit)
Once I reinstalled, all worked fine.
回答5:
I used these SmartGit troubleshoot recommendations: 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.
Previous on these thread recommendations did not work for me, and I did not want to reinstall SmartGit.
In Git-Shell:
1 git pull origin1 branch 2 git pull origin2 branch