Cyberhelp

for Researchers & Teams

Create Projects on GitLab

SESYNC offers private git hosting through our GitLab server. When you connect to our GitLab Community Edition (CE) instance using your SESYNC username and password, you’ll see a dashboard of recent activity on projects that you are part of. If this is your first time connecting, it may be a little quiet.

Create a Project

There are two types of projects you can create in GitLab, personal and group projects.

To create a project, click the new project either from the dashboard when you login for a personal project, or by clicking new project under a group for a group project. Enter the name, description and wether you want the project private, internal or public. Click create to finish creating your project.

Your project is now created and you can load files into it. Follow the instructions to manually load data, or follow one of our tutorials such as How do I create an RStudio Project with git?

After your project is created, you can use the links on your project page to browse activity and files in your project as seen below.

Project Sharing

Privately sharing your GitLab project with collaborators requires that collaborators have a SESYNC account. Please contact cyberhelp@sesync.org if your collaborator needs an account.

From the dashboard of your project, click the ‘Settings’ link, then click ‘Members’. You can share your project with new people by clicking the ‘new project member’ button.

Under “Select members to invite”, start typing the name of your collegues and a matching account name should appear. If they do not, they probably haven’t logged in to gitlab.sesync.org yet. Drop them a quick e-mail asking them to login so you can grant access. You can shoose the level of access from the choices below.

Click ‘Add users’ at the bottom when you have finished. The next time your collegue logs in they will see the project in their dashboard.

(Optional) Switch from HTTPS to SSH

HTTPS and SSH are two different protocols that let you securely push (pull) commits to (from) a remote git repository. HTTPS requires a username and password to authenticate, while SSH works with paired public and private cryptographic keys. You can use either one, but setting up an SSH key pair means never having to enter a username and password.

You can generate a key pair for any machine onto which you will clone your repository, but SESYNC makes it especially easy to use the SSH protocol for projects cloned to our RStudio Server from GitLab or GitHub.

  1. Login to https://rstudio.sesync.org
  2. Select “Tools” > “Global Options” > “Git/SVN”
  3. Choose “View public key”
  4. Copy the key to your clipboard and “Accept”/”Okay”/”Continue”/”Close” all the windows
  5. Login to your remote git repository to add your public key:
    • https://gitlab.sesync.org: click on your avatar (upper right) > “Settings” > “SSH Keys” > (Go To Step 6) > “Add key”
    • https://github.com: click on your avatar (upper right) > “Settings” > “SSH and GPG keys” > “New SSH key”
  6. Paste the key in the larger box (leave the smaller box blank to use a default title or label)
  7. Open every existing RStudio project you’ve previously cloned from GitLab/GitHub, and substitute the new repository URL (it begins with git@) for <URL> in the R command system('git remote set-url origin <URL>').

That’s it! You should be able to push and pull between your local git repository on https://rstudio.sesync.org and the remote git repository on GitLab/GitHub.

Related