Error pushing from Xcode to GitHub in proxy environment

Asked 2 years ago, Updated 2 years ago, 42 views

The following error occurred when pushing from Xcode to GitHub in the proxy environment.

 curl error: Failed to connect to github.com port 443: Operation timed out(-1)

Please tell me the cause and the solution.Thank you for your cooperation.

operating environment
Xcode 9.2
macOS 10.12.6

  • I have set the proxy for the mac network configuration.
  • I have configured Remotees for Source Control Navigator in Xcode.
  • You can do pull, clone in Xcode
  • .gitconfig is configured as follows:

    $cat to /.gitconfig
    [https]
    proxy=http://{proxy server}:{port}
    [http]
    proxy=http://{proxy server}:{port}
    [user]
    name = {user}
    
  • In GitHub Desktop, Atom, pull, push works fine, so I think gitconfig works.

  • .curlrc is configured as follows:

    $cat to /.curlrc
    proxy=http://{proxy server}:{port}
    

.gitconfig is configured as follows:

$cat to /.gitconfig
[https]
proxy=http://{proxy server}:{port}
[http]
proxy=http://{proxy server}:{port}
[user]
name = {user}

In GitHub Desktop, Atom, pull, push works fine, so I think gitconfig works.

.curlrc is configured as follows:

$cat to /.curlrc
proxy=http://{proxy server}:{port}

xcode macos github

2022-09-30 10:27

1 Answers

.gitconfig has user information, but .curlrc does not.Which setting is correct?
Also, since it's 443, is there anything related to the certificate?If you can't access it in the first place,
Other errors appear in .

That's it


2022-09-30 10:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.