GitHub is not accessible from git-bash

Asked 2 years ago, Updated 2 years ago, 500 views

The git command on a git bash installed in Windows causes various problems.

You can use git --version to verify the git installation.

The git clone command looks like this:

 git clone https://~~
Cloning into 'source'...
fatal: enable to access 'https://~~': Failed to connect to PC port 8080: Connection refused

When I try to set up a remote repository, it looks like this:

 git remote set-url origin https://github.com/~~
fatal —No such remote 'origin'

Do you know what's wrong with connecting to GitHub?

windows git github git-bash

2022-09-30 21:51

1 Answers

Try the following:

 git remote add origin https://github.com/~~

From the second time, set-url is available.


2022-09-30 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.