Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Git Beginners Git Beginners
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Insights
    • Issue
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Computer-ScienceComputer-Science
  • Git BeginnersGit Beginners
  • Wiki
  • Home

Home · Changes

Page history
Update Home authored Jul 24, 2018 by Andrew James Collett's avatar Andrew James Collett
Hide whitespace changes
Inline Side-by-side
Home.md
View page @ 80d3d2d2
...@@ -160,8 +160,10 @@ Let's get your code from the server to your local machine. ...@@ -160,8 +160,10 @@ 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.
Otherwise, if something went wrong, make a note of the error you encountered and ask a demi for help. Otherwise, if something went wrong, make a note of the error you encountered and ask a demi for help.
...@@ -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.
......
Clone repository
  • Home