Skip to content

Instantly share code, notes, and snippets.

@overcoil
Last active November 30, 2021 21:15
Show Gist options
  • Save overcoil/c187b7a59dd25c5d550f8efc3275a14f to your computer and use it in GitHub Desktop.
Save overcoil/c187b7a59dd25c5d550f8efc3275a14f to your computer and use it in GitHub Desktop.

Gitlab Quickies

Introduction

This is a quickie for using SFU Gitlab with Github Desktop for a fast GUI workflow.

Using git

  1. Create your project inside SFU Gitlab.

  2. Then Start by grabbing a copy of your repo from Gitlab like so:

$ git clone https://csil-git1.cs.surrey.sfu.ca/kaiyeec/c732-demo-sandbox.git /path/to/local/copy
Cloning into '/path/to/local/copy'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.

Using Github Desktop

  1. Github Desktop will only publish initially to Github.com. But for a repo that has been linked with an upstream (via a clone as above), it can be used to sychronize (push/pull). But first, add the (local) repo to Github Desktop: Screen Shot 2021-11-11 at 3 41 48 PM

  2. Add files to be committed using the checkbox and add comments: Screen Shot 2021-11-11 at 3 45 38 PM

  3. Then push up to your upstream repo (SFU's Gitlab repo): Screen Shot 2021-11-11 at 3 47 49 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment