First of all, I use the latest pop os! LTS version and my problem whenever I try to push my code into a repo an error occurs. here is exactly what I did:
- I initiated a git repo in my local machine
- I staged all changes
- I committed
- git branch -M main
- it remote add origin https://example.
- git push -u origin main
I got this error:
fatal: unable to access 'https://github.com/example :Failed to connect to github.com port 443: Connection refused
knowing that I tried this command: git push --set-upstream origin main
and I also have the same problem when I tried to config my ssh key