Home > OS >  What is the better way of git clone private repos?
What is the better way of git clone private repos?

Time:11-25

Previously SSH was used to git clone and push with keys but what if the default port 22 is blocked or cloning in a proxy and in a no proxy environment.

What is the better way of cloning in the Python script?

CodePudding user response:

If port 22 is blocked, you use HTTP protocol.

git clone http://github.com/user_name/repo

CodePudding user response:

At Github you can use host ssh.github.com port 443:

git clone ssh://[email protected]:443/user/repo.git

See the docs.

CodePudding user response:

Try Adding This:

Host github.com
Hostname ssh.github.com
Port 443
User git

Source: Github

  • Related