|
| 1 | + |
| 2 | + |
| 3 | +Thankfully, using the cloud main gitlab on the AAW is just like how you would regularly use git. |
| 4 | + |
| 5 | +### Step 1: Locate the Git repo you want to clone and copy the clone with HTTPS option |
| 6 | +If your repository is private, you will need to also do Step 4 (Creating a Personal Access Token) for this to go through. |
| 7 | +For me this was a test repo |
| 8 | + |
| 9 | + |
| 10 | +### Step 2: Paste the copied link into one of your workspace servers |
| 11 | + |
| 12 | + |
| 13 | +### Step 3: Success! |
| 14 | +As seen in the above screenshot I have cloned the repo! |
| 15 | + |
| 16 | +### Step 4: Create a Personal Access Token for pushing (also used if pulling from a private repository) |
| 17 | +If you try to `git push ....` you will encounter an error eventually leading you to the [gitlab help documentation](https://gitlab.k8s.cloud.statcan.ca/help/user/profile/account/two_factor_authentication.md#error-http-basic-access-denied-the-provided-password-or-token-) |
| 18 | + |
| 19 | +You will need to make a Personal Access Token for this. To achieve this go in gitlab, click your profile icon and then hit `Preferences` and then `Access Tokens` |
| 20 | + |
| 21 | +Follow the prompts entering the name, the token expiration date and granting the token permissions (I granted `write_repository`) |
| 22 | + |
| 23 | +### Step 5: Personalize `Git` to be you |
| 24 | +Run `git config user.email ....` and `git config user.name ...` to match your gitlab identity. |
| 25 | + |
| 26 | +### Step 6: Supply the Generated Token when asked for your password |
| 27 | +The token will by copy-able at the top once you hit `Create personal access token` at the bottom |
| 28 | + |
| 29 | + |
| 30 | +Once you have prepared everything it's time |
| 31 | + |
| 32 | + |
| 33 | +### Step 7: See the results of your hard work in gitlab |
| 34 | + |
| 35 | + |
0 commit comments