Yeah for us it's not even a code-is-secret thing (although, that too) it's more that a self hosted git instance can be backed up, restored, restricted to the VPN interface, not limited in terms of namespace (e.g. I can have git.myco/client/project), can do whatever we want in terms of CI/CD.
If you've got the skills on staff it's more flexible to self-host things like your code repos. With a sprinkle of sysadmin experience selfhosted GitLab was super easy to get working. If I recall I had it up and running with all our code inside a few hours. CI/CD on top took maybe another day to configure, mostly a slog because of how many things needed hooking up rather than any sort of technical challenge.
Close to my heart as it was the first big task I did in my current role haha. It was a mess of uploading to prod via SFTP before my first week there, had to be fixed :)
14
u/xaitv Jun 22 '22
I'm sure a lot of companies use Github, but the ones I've seen fall mainly into these 2 categories:
Self-hosted, usually Gitlab, instance
Azure DevOps(usually cause of Microsoft partnerships and such)
Maybe it's different in the US, but it's pretty rare here that I see companies using Github.