I have set up a few Custom Actions in SourceTree, and they have all worked fine for me. For instance, I have some custom cherry-pick commands that I use from time to time:
However, I just created a new Custom Action that operates on the repository in general (not on a specific commit) and I just can't get it to work. Here is its description:
Each time I attempt to execute this Custom Action, I get this error:
git push --force
could not read Password for 'https://email@example.com': Device not configured
Completed with errors, see above
Does anyone have any idea why there is this authentication error when I try to simply to do a "git push --force" via a Custom Action?
Yup, that's working fine, but only if I use /usr/bin/git (which is the default). If I try to use /Applications/SourceTree.app/Contents/Resources/git_local/bin/git to do a push --force, it fails with a slightly different error:
fatal: Unable to find remote helper for 'https'
But it seems to fail with the former error in SourceTree, regardless of which git binary I choose for the Custom Action.
It's worth trying SSH (although requires a bit of setting up). We've got a guide here: https://confluence.atlassian.com/display/BITBUCKET/Using+the+SSH+protocol+with+Bitbucket
I'll still look into this HTTPS issue in the meantime, but I suspect using SSH in your case will resolve the issue.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
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