Results
- You will push a base Paas into GitLab
Tasks / Procedure
- Go to Terminal or CMD. From "paas-training/backend/backend-paas-project/"
- Init a new Git repository in the "backend-paas-project" directory
git init
- Connect your local Git repository to a remote repository in GitLab.
git remote add origin https://gitlab.paastraining.magnolia-platform.com/paas-training/backend-paas-project.git
- Create a branch that you will use during the project to deploy. (The branch should have the structure of:
<the first letter of your first name and your surname>
.)- For example: Francisco Gonzalez - Branch name
fgonzalez
git pushgit checkout -b <yourBranchName>
- For example: Francisco Gonzalez - Branch name
- Push the project into your own branchgit push
git add . git commit -m "Initial commit" git push origin <yourBranchName>
- Use your GitLab Username and the access token
- Username:Username for 'https://gitlab.paastraining.magnolia-platform.com':
- On the left sidebar, select your avatar - Select your name or username
- Password:Password for 'https://francisco.gonzalez@gitlab.paastraining.magnolia-platform.com'
Access token: glpat-pMU6RqqEXzG3U35XDzSw
- Username:
- Hint: (You should have a structure like this)
- Use your GitLab Username and the access token
- Check if you can see your project and your branch in GitLab
- In GitLab, go to Settings > Repository > Protected branches > Add protected branch
- Select your branch and change the selectors to "Maintainers"
- "Protect" your branch