Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to push a commit github

Deleted user Mar 15, 2019


I wasn't able to push a commit to the repository on github. It gave me the following message:

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master

Pushing to

remote: Permission to username/folder.git denied to username.

fatal: unable to access '': The requested URL returned error: 403

Please help me! Thanks!

1 answer

0 votes
minnsey Atlassian Team Mar 19, 2019


What form of authentication are you using ? username/password, OAuth or an a Personal Access Token?

Is it possible that credentials don't have the right permissions for that repository? 


I am using OAuth as suggested. Do you know how I can check if the credentials have the permissions to that repository? Thanks!

minnsey Atlassian Team Mar 20, 2019

Good question.

I'd check the permissions for that particular repository, check which users have which rights and check you are on there with write permission


Yes, I have the permission to write to the repository. That's why I am pretty confusing. I was suggested to change the username/password. Do you know how to do that? 

minnsey Atlassian Team Mar 20, 2019

Can I check are you on mac or windows?

I'm assuming you would need to change the credentials on GitHub first and then clear out any old credentials locally.  On Windows this would be by deleting any 'git:' prefixed entries in the Windows Credential Manager. 

I’m using a Mac with the latest version. My Sourcetree is 3.1.1. Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,065 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you