getting-started

GitLab

Getting GitLab account to the production server

  1. Review GitLab distribution guide

  2. Wait for completion of Step 4 in the table outlining sequence of events. Receiving an invitation to reset the password may not complete the account linkage process; follow-up with your GitLab administrative lead.

Creating and populating a new repository

  1. Create a personal repo New project

    • Optionally, examine effects of:
      • Using the online editor to modify the readme
      • Creating issues, assiging due dates, attaching labels to an issue
  2. Determine which files should not be tracked and specify them in a .gitignore file.

    • Discuss with team members whether an existing .gitignore template can be adopted; for instance, some projects may require tracking of changes made to README.md. Adjust the contents of .gitignore accordingly
  3. Transfer ownership to BCCDC's subgroup when your team feels ready to share the repo with all internal members

    • Optional: select and adapt from an existing template

Notes:

Git from the Terminal

R terminal in R Studio via CAP

Please review the tutorial by Michael K.

Git Bash
  1. Launch Git Bash

  2. In Git Bash, change directory to where you'd like your local copy to reside, e.g. cd o: and press ENTER

    Tip: make advantage of TAB key for code completion, e.g. cd BCC and press TAB key

    In this case, Bash will suggest you folder names that start with "BCC".

  3. Create and securely make a copy of your personal token (see page 5 of GitLab Guide)

  4. Clone the repo; e.g.: git clone user.name:__put_personal_token_here__@lvmgenodh01.phsabc.ehcnet.ca/bccdc/das/dsi/SharePoint/GitLab.git

  5. Make changes on your local copy, e.g. create a new png file in your local directory

    git add .  # add all files for tracking 
    git commit -m "<your message here>" 
    git push   # publish to remote repo 
    
  6. Check the repo GitLab for your changes, unless error messages were generated in Step 5

Return to home