I just updated Sourcetree today on my Mac and now I can't push. I can pull and everything works well there but when I push I get the following error:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master
Pushing to ssh://[mygitlocation].git
Permission denied, please try again.
Permission denied, please try again.
[address]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above
Is anyone else experiencing this after the update (v2.7)? Can you help me please?
Same problem here, just updated to SourceTree 2.7 (152) and I can't push anymore:
git-credential-sourcetree[18276:983688] Error generating password due to missing uuid. Please report this to Atlassian.
2018-01-22 16:32:40.461 git-credential-sourcetree[18276:983689] Something went wrong. one or more parameters required to renew token is nil.
2018-01-22 16:32:43.589 git-credential-sourcetree[18276:983688] Error generating password due to missing uuid. Please report this to Atlassian.
2018-01-22 16:32:43.590 git-credential-sourcetree[18276:983688] Password encryption failed - key to to encrypt password is unavailable (nil)
fatal: Authentication failed for...
Downgrading to 2.6.3 solved the problem
I have the same problem too.
After upgrading to 2.7 (152) a week ago, I can't push or pull to any repository . I use BitBucket repos and a self hosted repos with GitLab.
Every repo is working well if I use GitKraken :-( I don't like GitKraken!!!
I'm trying to downgrading
Some two weeks later and 2.7 152 is still being sent out as an upgrade. I just spent hours trying figure out why push quit working before found this thread.
I think I've saved others in our group the same problem.
Was able to go back to an older version using a timeMachine backup.
We've had some report of this and got a fix in the latest beta. Would you mind trying that and share your feedback?
You can download the latest beta build here - https://bitbucket.org/atlassianlabs/sourcetree-betas/downloads/OSX_Beta_Latest.zip
It is safer to remove any keychain items that might be present for the account before trying the new build. This is just to ensure that you save the right credentials again and the old ones that may cause any issue are removed.
For all those using ssh, please check if the ssh-agent has your keys loaded. If not, please add them to the agent.
Run below commands in terminal to do so,
To check if keys are loaded:
To add keys to agent:
Key in the passphrase used while generating the ssh key and you should be good to go.
You can either follow the steps above and get your ssh setup working. If you want to switch over to using https, right click on the repository bookmark in the Repository Browser window and you will have an option to "Convert to https". Click on that and from then on, Sourcetree will use the username/password for basic auth or username/access token for OAuth accounts.
I am also having this issue with private repos since 2.7 and the beta didn't fix it.
I have the same error than Mike in addition to the following line:
ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory
Here is where I am at:
I have the following configuration:
New version 2.7.1 (159) solved the issues, but first I had to uninstall and remove my ~/Library/Application Support/SourceTree folder.
I kept a copy of ~/Library/Application Support/SourceTree/browser.plist (bookmarks). Once I reinstalled the new version, opened it to initialize, I was able to copy back the browser.plist to retain my bookmarks.
Updated, deleted folder, started again, copied back the browser.plist file ...
Still having problems ... I'm using a gitlab (self hosted) repository accessed via https, still asking for password all the time I assume for any repo on the list ...
Returned to the 2.6.3 and no problem at all :-(
What I'm doing wrong?
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs