Why you don't use Gitlab ?

simerca

Ayrton

Posted on September 30, 2020

Why you don't use Gitlab ?

Hey Githubers!

Today, I will try to convert you to use GitLab as main repo support for your projects.

I discover Gitlab about 6 months, and the first thing I've find very cool, its the subproject support.

You can do your project architecture as this :

MyProject
  - backend
  - frontend
Enter fullscreen mode Exit fullscreen mode

so the url of repo is :

https://gitlab.com/myproject/backend
https://gitlab.com/myproject/frontend

very cool no ?

Push directly with command line

Simply use this command if the repo doesn't exist

git init
git remote add origin https://gitlab.com/<GroupProject>/<Project>
git add .
git commit -m "initial release"
$git push -u origin master
Enter fullscreen mode Exit fullscreen mode

The -u command on git push is to set a new project if it doesn't exist.

Another thing

Private package registry

For an entreprise is really useful to have Private package registry.

Packages registry is a cloud image of your project for a reuse as container by exemple.
For exemple, you can set in Docker a gitlab registry.

like:
docker-compose.yml

image:registry.gitlab.com/<GroupProject>/<Project>
Enter fullscreen mode Exit fullscreen mode

If you love gitlab, set a comment. (and clap your hands๐Ÿ‘) ๐ŸŽถ

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
simerca
Ayrton

Posted on September 30, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Why you don't use Gitlab ?
git Why you don't use Gitlab ?

September 30, 2020

ยฉ TheLazy.dev

About