0

The question :I push my code to the manager of project-coding,the error like this :

git push origin master
fatal: unable to access 'https://git.coding.net/hzChenwj/RCS.git/': The requested URL returned error code 403

enter image description here

If you had a same problem and solved it, can you give some suggestion?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Jason.Xu
  • 31
  • 2

1 Answers1

0

If an https URL answers 403 without having asking for your credentials (username+password), that means the wrong credentials are cached.

See "Updating credentials from the OSX Keychain" in order to updaye or delete the entry in that cache.
(or one of the suggestions from "How do you reset the stored credentials in 'git credential-osxkeychain'?")

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • But another project is OK! All operation are OK! – Jason.Xu Sep 05 '17 at 05:27
  • @Jason.Xu you can cache credentials just for one URL: check first what your OSX keychain contains. Also, check the value of `git config credential.helper` in both repos (the one where there is a 403 on push, and the one where it works) – VonC Sep 05 '17 at 05:31
  • OK,I'll have a try. Thanks! – Jason.Xu Sep 05 '17 at 05:38