Source tree Issue - How to fix "Permission Denied"
Error on Bitbucket
with Permission denied Error
Hello everyone, welcome back to Learn Tech Tips channel, I am Zidane, nice to meet you all.
When working with git, you should know Source tree IDE, that one of best IDE which i had been used it until now. (2022). Sometime you will have some issue about permission denied when you try to commit to head source, one of issue is Permission denied error,
This error may occur when you try to clone, pull, push, or fetch from a remote repository using SSH. This means that Source Tree cannot authenticate you with the remote server using your SSH key.
There are several possible solutions for this error, depending on the cause and the configuration of your system. Here are some of them:
• You may need to generate a new SSH key pair and add the public key to your remote repository (such as GitHub or GitLab) and the private key to your SSH agent
• You may need to delete or edit the password file in your Source Tree directory, which stores your credentials for your remote repositories. You can find this file in C:\Users<username>\AppData\Local\Atlassian\SourceTree. You can either remove the line with the account that you want to change the password for, or refresh the personal access token for that account.
When meet above issue, First you should try to check your error details on IDE first, almost error will be same with my below screen shot. If you same it, you can apply my method and fix it.
I will fix it by close all file and then close your Sourcetree IDE, after that try to execute commit again.
See is it useful for you?
Any feedback or question, leave your comment we can discuss about it
Learn Tech Tips - Zidane - Fix Permission Denied Sourcetree