... | @@ -160,7 +160,9 @@ Let's get your code from the server to your local machine. |
... | @@ -160,7 +160,9 @@ Let's get your code from the server to your local machine. |
|
remote: Total 430 (delta 52), reused 80 (delta 41)
|
|
remote: Total 430 (delta 52), reused 80 (delta 41)
|
|
Receiving objects: 100% (430/430), 68.86 KiB | 530.00 KiB/s, done.
|
|
Receiving objects: 100% (430/430), 68.86 KiB | 530.00 KiB/s, done.
|
|
Resolving deltas: 100% (215/215), done.
|
|
Resolving deltas: 100% (215/215), done.
|
|
```bash
|
|
```
|
|
|
|
|
|
|
|
> **Note:** Since this is probably the first time you have connected to git.cs.sun.ac.za, you will be asked if you want to trust this host. We are vouching for git.cs.sun.ac.za, so you can safely type `yes`.
|
|
|
|
|
|
If you have successfully cloned your code onto your local PC, well done! You should see a new directory within the directory you created with the same name as your project name.
|
|
If you have successfully cloned your code onto your local PC, well done! You should see a new directory within the directory you created with the same name as your project name.
|
|
|
|
|
... | @@ -245,7 +247,10 @@ Let's create a file in your git directory and see how this change is shown in gi |
... | @@ -245,7 +247,10 @@ Let's create a file in your git directory and see how this change is shown in gi |
|
|
|
|
|
Now that we have added a commit, we need to send those changes back into GitLab.
|
|
Now that we have added a commit, we need to send those changes back into GitLab.
|
|
1. Back in your terminal, "cd" into your project directory.
|
|
1. Back in your terminal, "cd" into your project directory.
|
|
2. Type `git push`.
|
|
2. Type `git push origin master`.
|
|
|
|
|
|
|
|
> **Note:** In future you only need to type `git push`. We only use origin master here because this is the first time we are pushing to this *empty* project.
|
|
|
|
|
|
3. You should be prompted for your SSH key password. Enter this and hit "Enter". If all goes well, you should see something like the below.
|
|
3. You should be prompted for your SSH key password. Enter this and hit "Enter". If all goes well, you should see something like the below.
|
|
```bash
|
|
```bash
|
|
Counting objects: 3, done.
|
|
Counting objects: 3, done.
|
... | | ... | |