'Git and GitHub CLI clone or push not working

Cloning into '-'...
fatal: unable to access 'https://github.com/NazmusSayad/-.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443
exit status 128

If I push or clone anything this is't working. This is showing this error. But if I relogin git with gh auth login then it is working but after reopening shell again not working.

NB: Git and GitHub CLI version are latest.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source