Git push Failed to connect to localhost port 1080 [How to Solve]

Conclusion: it is caused by setting agent

1. Check the global settings

Enter git config -- Global - e to check whether there are proxy settings for [HTTP] and [HTTPS] in the global configuration, such as proxy= socks://localhost:1080, if any, delete it.

2. Check the config in the current. Git file

In the current working directory, cat ./.Git/config

As shown in the figure above, delete the agent.

Read More: