Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote

velvetfist
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2023

I'm getting the following error when attempting to clone my remote repo. Thanks for any ideas on how to fix. Thanks

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://velvetfist@bitbucket.org/Hickz/crystalseas-v2.git
Output:
Error: git credential-manager" get: -c: line 1: unexpected EOF while looking for matching `"'
git credential-manager" erase: -c: line 1: unexpected EOF while looking for matching `"'
remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/Hickz/crystalseas-v2.git/'

 

1 answer

0 votes
Martin Runge
Community Champion
July 7, 2026

Hi @velvetfist

Welcome to the Atlassian Community

This looks like a broken credential.helper entry rather than a real authentication problem. The shell is choking on a quoting issue in that value, which is why you see the odd EOF error before it even gets to Bitbucket.

I would simplify it to just: git config --global credential.helper manager

That should let Git resolve the helper itself instead of relying on a hardcoded path. If Sourcetree bundles its own Git, confirm under Tools > Options > Git that it points to that same Git installation, not a second with a different config.

Cheers, Martin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events