Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Hello, today I suddenly cannot push/pull my repos with git. very frustrating.

Hello, Below is the error message returned when pushing/pulling to git. I didn't change anything. Just got in work today and things are totally broken. I am using Mac OSX High Sierra, 10.13.6

""" git@github.com: Permission denied (publickey). Fatal: Could not read from remote repository. """

I tried to delete my account in Sourcetree preferences, and recreate. I double checked my account user name by logging directly into GitHub.com - no problem. I tested Sourcetree on other machines in my office (Windows), they work fine.

I then attempted to downgrade from 2.7.3 to 2.6. this also didn't work.  I see there are numerous threads on your forums regarding this, and this seems to be an ongoing bug. I am totally stuck and cannot proceed with my work.

 

What is the way forward. Thanks in advance!

1 answer

0 votes
Manju Atlassian Team Sep 13, 2018

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:

ssh-add -l

To add keys to agent:

ssh-add <path_to_key>

more like,

ssh-add ~/.ssh/id_rsa

Key in the passphrase used while generating the ssh key and you should be good to go.

Hi, thanks for the response!

Is this relevant if I am using HTTPS?

I pasted below the full error. I hope that is helpful. Still unable to use SourceTree. I'm using the HTTPS mode, not SSH.

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 

git@github.com: Permission denied (publickey).

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

and the repository exists.

git@github.com: Permission denied (publickey).

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

and the repository exists.

git@github.com: Permission denied (publickey).

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

and the repository exists.

git@github.com: Permission denied (publickey).

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

Manju Atlassian Team Sep 13, 2018

This definitely isn't an error you should see with https. Can you check the account configuration in Sourcetree and also verify that the remote URL in the repository is indeed https?

that was it. looks like perhaps when Sourcetree updated it clobbered the URL's for all my repo's. I reset to https now all is well. thanks for the help. 

Suggest an answer

Log in or Sign up to answer
TAGS
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...

3,290 views 4 5
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