|
@@ -13,9 +13,15 @@ We are going to do some exercises in a dummy project that you can find in this c
|
|
|
|
|
|
## Getting started
|
|
|
|
|
|
-Prepare your environment for the first use of Git.
|
|
|
+First you may need to install the Git command-line tools.
|
|
|
+
|
|
|
+### Linux
|
|
|
|
|
|
-> Of course, you must have git installed. With ubuntu: **sudo apt-get install git**
|
|
|
+- With ubuntu: `sudo apt install git`
|
|
|
+- With centos: `sudo yum install git`
|
|
|
+- With suse: `sudo zypper --non-interactive install git`
|
|
|
+
|
|
|
+Prepare your environment for the first use of Git.
|
|
|
|
|
|
For instance:
|
|
|
|
|
@@ -29,7 +35,8 @@ git config --global color.branch auto
|
|
|
git config --global core.editor "vim"
|
|
|
git config --global push.default simple
|
|
|
```
|
|
|
-Clone the Git_Training repository.
|
|
|
+
|
|
|
+Clone the Git_Training repository
|
|
|
|
|
|
For instance:
|
|
|
|
|
@@ -47,6 +54,16 @@ And now:
|
|
|
git clone ssh://git@www.climate.be:3022/TECLIM/Git_Training.git
|
|
|
```
|
|
|
|
|
|
+### Windows or Mac
|
|
|
+
|
|
|
+[Download and Install Git](https://www.elic.ucl.ac.be/TECLIM/Git_Training/src/master/resources)
|
|
|
+
|
|
|
+Clone the Git_Training repository
|
|
|
+
|
|
|
+For instance, paste the URL into TortoiseGit and it will clone the repo locally on your computer:
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
## Tips and Tricks
|
|
|
|
|
|
#### How do I add an empty directory to a Git repository ?
|