How do I fix authentication failed in git?

It happens if you change your login or password of git service account (Git). You need to change it in Windows Credentials Manager too. type “Credential Manager” in Windows Search menu open it. Windows Credentials Manager->Windows Credential and under Generic Credentials edit your git password.

How do I add a remote account to SourceTree?


  1. Click on the “Settings” button on the toolbar to open the Repository Settings window.
  2. Click “Add” to add a remote repository path to the repository.
  3. Enter a name for the remote path.
  4. Enter the URL/Path for the remote repository.
  5. Enter the username for the hosting service for the remote repository.

How do I reset my SourceTree password?

For Mac given steps can help you…

  1. Got to the folder ~/Library/Application Support/SourceTree.
  2. Delete the file {Username}
  3. Restart Sourcetree.
  4. Try to fetch, password filed appear, give your new password.
  5. Also can run “git fetch” command in terminal and need to type password.
  6. Done.

How do I authenticate bitbucket in SourceTree?

Let’s do that now.

  1. Open the SourceTree app.
  2. Click the “Gear” icon in the top right corner and select “Settings”
  3. Click “Add Account”
  4. Hub: Select “BitBucket”
  5. Username: (Enter your BitBucket username)
  6. Password: (Enter your BitBucket password)
  7. Protocol: Select “SSH”
  8. Click “OK”

How do I reset my Git credentials?

Go to Control Panel > User Accounts > Credential Manager > Windows Credentials. You will see Git credentials in the list (e.g. git:https://). Click on it, update the password, and execute git pull/push command from your Git bash and it won’t throw any more error messages.

What is root URL in Sourcetree?

If it’s cloud, the root URL should be something like You can also refer to Connect your Bitbucket account for additional information.

How do I use multiple users in Sourcetree?

For SourceTree 2.0. 2+ on Mac only with GitHub accounts: Click from menu File-> New/Clone. In the dialog click settings icon….NOW on Windows, you do it in the Clone/Add/Create Repository dialog:

  1. Click the “Hosted Repositories” button (internet icon)
  2. Click “Edit Accounts”
  3. Click “Add”

How do I pull code into Sourcetree?

Pull changes from a remote repository

  1. Click the Pull button in the toolbar.
  2. Select the remote repository to pull from.
  3. Select the remote branch to pull changes from.
  4. Click OK.

How does Sourcetree connect to GitLab?

To set up a account profile in SourceTree:

  1. Open the SourceTree Preferences Accounts screen.
  2. Click Add… ​ to open the account options screen.
  3. Set the following options: Host. Select from the list. Username. Type your username (not your email) into the field.
  4. Click Save.
  5. Close the Accounts screen.

Why is my Sourcetree account not working anymore?

SourceTree has been successfully authenticated. You may now close this page. It always worked but it suddenly stopped, i do not have two factor authentication. I tried deleting the account and adding it again to no avail. How can I get the connection working again so that I can push my project to github.

Why do I get error pushing to GitHub with Sourcetree?

Im trying to push to github with sourcetree but get the following error: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v –tags origin live_version:live_version remote: Invalid username or password. fatal: Authentication failed for ‘ ‘ Pushing to

Why do I get fatal authentication failed for origin error?

Getting “fatal: Authentication failed for…” error In SourceTree, I’m getting the “fatal: Authentication failed for…” error when I try to Push/Pull from origin. The Git terminal from SourceTree asks for my username/password and, when I enter it, it works correctly (I’m able to do a push/pull anyway).

Why is Git repository not found in Sourcetree?

In my case, it was because I was using HTTPS in stead of SSH as the remote repository path in SourceTree (Settings > Remotes). Didn’t work in Sourcetree: Worked in Sourcetree: [email protected]:companyname/reponame.git To get the latter from GitHub, click Clone or download then Use SSH