Getting Started with Git and GitHub


#1

https://www.codecademy.com/programs/10b05340b90bb10427851912f36421a2/items/74bb71f3f3d5998245e9bbef934502d9

I am attempting to create my first remote repository through Git Bash on my computer. I am able to add the remote repository, but when I attempt to push git_practice to the GitHub repository, it shoots back this error: fatal: unable to access ‘https://github.com/haleymich83/git_practice.git/’: Failed to connect to github.com port 443: Connection refused

I have tried pushing it in a number of ways (including not using the -u) but it still shoots this back to me.


#2

did you set up your identity:

https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup#_your_identity

its something you need to do the first time on new machines


#3

Hello @stetim94,

I have already set my global username and user email.


#4

doing a simple google search results in this:

What network are you using? the port might be blocked


#5

I assume you can access github in your browser with https?
Does your browser go through a proxy?
Are you able to connect to https://github.com with curl? ie. curl https://github.com - it should output a bunch of html if successful (…assuming you have curl installed, you can try wget as well, or pretty much any tool able to connect using a specific port)


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.