cloneRepo.md 862 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## How do I start working on a repository?

You have to `clone` it first:

```bash
$ git clone git@github.com:userName/myRepo.git myRepo
```

<div class="fragment">
<br>
If you did not configure your SSH key, clone using HTTPS:
```bash
$ git clone https://github.com/userName/myRepo.git myRepo
```
<br>

<div class="fragment">
You will be prompted to enter your credentials.


21
## Time to practice!
22
23
24
25
26

(Live Demo)

<br>

27
Clone the practice repository: <br><br>
28
29
https://git-r3lab.uni.lu/R3.training/git.practice

30
31
32
33
34
35
36
<div class="fragment">
<br>
```bash
$ git clone ssh://git@git-r3lab-server.uni.lu:8022/R3.training/
  git.practice.git practice
```

37
38
<div class="fragment">
<br><br>
39
<font color="red">
40
41
Any other rudimentary method such as

42
*'I simply download the `.zip` and unzip it - works like a charm!'*
43
44

shall **be avoided**!
45
</font>
46

47
48
<div class="fragment">
<br>Why?