Forums

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

remote: 您的访问凭证无效。

李大卫
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!
September 9, 2025

Halfway through the project development, the repository address was changed. I updated it in the settings. When submitting, I was prompted to enter my account and token, but I accidentally entered the wrong information, resulting in an error. The error message was: `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 https://cnb.cool/cascade.iot/keruiman/jlink-mes-hanfcooling-frontend
remote: Invalid Credentials.
remote: Your access credentials are invalid.
fatal: unable to access 'https://cnb.cool/cascade.iot/keruiman/jlink-mes-hanfcooling-frontend/': The requested URL returned error: 400
Completed with errors, see above. How can I resolve this? I wish to fill in this token again. My cursor is capable of submitting code because I have set it up correctly

2 answers

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
July 10, 2026

Hey @李大卫 and welcome,

try to update your credential. You have different options to do that.

From SourceTree

  • Go to Tools → Options → Authentication.
  • Locate the account associated with cnb.cool.
  • Remove it.
  • Add it again using the correct credentials/token.

From local git

  • check the configured credential helper: 
    git config --global credential.helper
  • If credentials are cached, you can remove the stored entry from Credential Manager or invalidate it by running: 
    git credential-manager erase https://cnb.cool

Hope this helps,

Fabio

0 votes
Tomislav Tobijas
Community Champion
October 23, 2025

Hi @李大卫 ,

Have you managed to resolve this?

You could try clearing credentials in your device with something like this:

  • Windows: Go to the Windows Credential Manager and remove any saved credentials related to your repository URL.

  • macOS: Open the Keychain Access app and search for entries related to your repository URL, then delete them.

And then by navigating to Sourcetree and trying to add credentials once again > it should be located somewhere in Options/Preferences.

You could also consider using SSH keys for authentication: Set up SSH with Sourcetree 

Cheers,
Tobi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events