-1

This answer does not have valid link

For both GitHub & GitLab, we only have https access through browser. Installing Git in local laptop does not help us run git add remote https://github.com/abc/xyz.git or git fetch --all


1) How does git client(git push or git fetch --all) work with GitLab or GitHub remote repo? Is it through https or ssh?

2) What ports need to be enabled on GitHub remote repo(server)? to run such commands

overexchange
  • 15,768
  • 30
  • 152
  • 347
  • The corrected link: https://git-scm.com/book/en/Git-Internals-Transfer-Protocols – phd Feb 06 '19 at 12:01
  • *we only have https access through browser* Proxy? – phd Feb 06 '19 at 12:04
  • *Installing Git in local laptop does not help* What's the problem? – phd Feb 06 '19 at 12:04
  • @phd gitlab is running on public cloud foundry on azure cloud which can be connected thru bastion server(jumpbox), by the admin of that setup. Jenkins can access gitlab because they are behind bastion server. – overexchange Feb 06 '19 at 12:28

1 Answers1

1

At least on Gitlab, you can work by HTTP / HTTPS / SSH. I do not remember if Github supports also HTTP(S) or has been dropped the support. On Github, you can use HTTPS for PULL, but I didn't remember if you can use also for PUSH.

The ports will depend on the server configuration and protocol. But if the configuration are standard, ports will be 443 for HTTPS or 22 for SSH.

Sakura Kinomoto
  • 1,784
  • 2
  • 21
  • 30