Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tasks / Procedure

  1. Go to Terminal or CMD. From "paas-training/backend/backend-paas-project/"  

  2. Init a new Git repository in the "backend-paas-project" directory
    Code Block
    git init

  3. Connect your local Git repository to a remote repository in GitLab.
    Code Block
    git remote add origin
    and clone the "Backend Paas Project" Clone the empty project in a new directory called "backend"
    Code Blockgit clone
     https://gitlab.paastraining.magnolia-platform.com/paas-training/backend-paas-project.git
  4. 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
      Code Block
      titlegit push
      git checkout -b <yourBranchName>
      
  5. Push the project into your own branch
    Code Block
    titlegit push
    git add .
    git commit -m "Initial commit"
    git push origin <yourBranchName>
    1. Use your GitLab Username and the access token.token 
      1. Username:
        Code Block
        titleUsername for 'https://gitlab.paastraining.magnolia-platform.com':
        - On the left sidebar, select your avatar
        - Select your name or username
      2. Password:
        Code Block
        titlePassword for 'https://francisco.gonzalez@gitlab.paastraining.magnolia-platform.com'
        Access token: glpat-pMU6RqqEXzG3U35XDzSw
  6. Go to "backend" directory. Use the Magnolia's Maven Archetype to create a new Magnolia Paas Project

...

    1. Hint: (You should have a structure like this)
      Image Modified

4. Push the project into your own branch.

    • You will 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
    • Use the next script.
      Code Block
      titlegit push
      git checkout -b <yourBranchName>
      git add .
      git commit -m "Initial commit"
      git push origin <yourBranchName>
  1. Check if you can see your project and your branch in GitLab

...

  1. In GitLab, go to Settings > Repository > Protected branches > Add protected branch
    1. Select your branch and change the selectors to "Maintainers" 
    2. "Protect" your branch

Image RemovedImage Added