This is exactly what I did last year. Giving a link to my git wouldn't really have worked since it would have pointed to "localhost" and nobody can access my Gitlab server from outside.