SourceTree - git: fatal: remote error: Repository not found

Simple solution for me was that because the repo was a private repo. I had to append my username and an at-symbol (@) before the git URL.

Set your remote to

https://[email protected]/YOUR_COMPANY_NAME/YOUR_REPO_NAME.git

instead of

https://github.com/YOUR_COMPANY_NAME/YOUR_REPO_NAME.git

Then enter your github user password upon eventual request.

Or rather use SSH instead

ssh://[email protected]/YOUR_COMPANY_NAME/YOUR_REPO_NAME.git

as HTTPS is to be deprecated soon.


I figured it out the issue. I already had a a personal github account linked to sourcetree. When i deleted the personal github account and added the work account it worked fine.

  1. Go to Tools -> Options
  2. Click on Authentication Tab
  3. Delete the other github account and add the new one

Had the same issue. The reason in my case was that I authenticated via https on command line but then used sourceTree via oAuth. Setting the Auth type to "Basic" in my Account settings helped.


I have experienced the problem on Windows (8.1 x64) with a more subtle reason. The problem stemmed from the use of git authentication hooks, like the git-credential-winstore (https://gitcredentialstore.codeplex.com/).

In order for it to work i simply removed my network password to github like this:

  1. Start menu
  2. Manage Network Passwords
  3. Removed my password for http://github.com

If you want to entirely remove the git credential store this SO post which may be of help: https://stackoverflow.com/a/18376438