1

I would like to know if it is possible to specify a port number while using git clone. I do not use ssh, I would like to clone a repository from the github website.

Thank you!

J.dodo
  • 11
  • 1
  • 2
  • 2
    I guess you can relate here http://stackoverflow.com/questions/5767850/git-on-custom-ssh-port – kuskmen Mar 15 '17 at 15:07
  • Github serves HTTPS over standard port 443. – Josh Lee Mar 15 '17 at 15:13
  • To be honest, I saw this post, but I did not understand it. For ssh://git@mydomain.com:[port]/gitolite-admin, I need to replace the "port" with the wanted port, but the "mydomain" needs to be replaced by github? If yes, how do I specify the repository I want to clone? – J.dodo Mar 15 '17 at 15:24
  • If you need to clone it from the github website, why do you need to specify the port at all? You should clone from a url like `https://github.com/username/project.git`, there should be no need for a port at all. Can you clarify why you think you need to do this? – Lasse V. Karlsen Mar 15 '17 at 18:15
  • 1
    Possible duplicate of [Git On Custom SSH Port](https://stackoverflow.com/questions/5767850/git-on-custom-ssh-port) – Daniel Santos Feb 21 '19 at 21:40

0 Answers0