Ayrton
Posted on September 30, 2020
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
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
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>
If you love gitlab, set a comment. (and clap your hands๐) ๐ถ
Posted on September 30, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.