Create Git repository

  1. Open your Gitlab dashboard.

    • Click the Projects on the left menu.
    • Click the New project button. GitRepoCreation
    • At Create new project page, choose Create blank project option. GitRepoCreation
    • At Create blank project page.
      • Enter fcaj-book-store at Project name.
      • Choose your namespace at Project URL.
      • Uncheck Initialize repository with a README. GitRepoCreation
      • Scroll down and click the Create project button. GitRepoCreation
    • The project fcaj-book-store is successfully created. GitRepoCreation
  2. Upload the source code to fcaj-book-store Gitlab project.

    • Open your terminal and go to the root directory of fcj-book-store-sam-ws7 project that you downloaded before.

    • Run the code below.

      git init
      git remote add origin https://gitlab.com/<your-username>/fcaj-book-store.git
      git add .
      git commit -m "Initial commit"
      

      GitRepoCreation

    • Rename the branch to main and push the code.

      git branch -m main
      git push -u origin main
      

      GitRepoCreation

  3. Back to fcaj-book-store Gitlab project. You could see the code has been uploaded. GitRepoCreation