|
|
@@ -1,49 +1,32 @@
|
|
|
# Set up your working environment
|
|
|
-## Exercise 1 – Git global configuration
|
|
|
-
|
|
|
-First of all you will have to configure git locally in your laptop:
|
|
|
|
|
|
-> Of course, you must have git installed. With ubuntu: **sudo apt-get install git**
|
|
|
+## Exercise 1 – Git global configuration
|
|
|
|
|
|
-Open a terminal and run the following git global commands (put your name and email):
|
|
|
+First of all you will have to configure git locally in your desktop:
|
|
|
|
|
|
-```
|
|
|
-git config --global user.name "My name"
|
|
|
-git config --global user.email "my_mail@uclouvain.be"
|
|
|
-git config --global color.ui auto
|
|
|
-git config --global core.editor "vim"
|
|
|
-git config --global push.default simple
|
|
|
-```
|
|
|
+You must have git installed. See the instructions [here](https://www.elic.ucl.ac.be/TECLIM/Git_Training/src/master/resources/README.md)
|
|
|
|
|
|
-## Exercise 2 – Gogs configuration
|
|
|
+## Exercise 2 – Github configuration
|
|
|
|
|
|
-If it is the first time you try to enter in Gogs click on “Sign-in” and use your classical ELIC login.
|
|
|
+Go to [https://github.com/](https://github.com/) and "Sign-in".
|
|
|
|
|
|
-After completing this step you will need to ask access to the repositories you want. Send an email to the Gogs administrators of this (these) project(s) asking access to.
|
|
|
+After completing this step you will need to ask access to the repositories you want. Send an email to the administrators of this (these) project(s) asking access to.
|
|
|
|
|
|
## Exercise 3 – Clone into a working environment
|
|
|
|
|
|
-To start working you need to create a clone, called afterward “working copy” of the git_tutorial project from Gitlab in your home (or folder of your choice):
|
|
|
+To start working you need to create a clone, called afterward “working copy” of the git_tutorial project from Github in your home (or folder of your choice):
|
|
|
|
|
|
-```
|
|
|
-git clone ssh://git@www.climate.be:3022/TECLIM/Git_Training.git
|
|
|
-```
|
|
|
+For instance, paste the URL into TortoiseGit and it will clone the repo locally on your computer:
|
|
|
+
|
|
|
+
|
|
|
|
|
|
It will ask for your username and password and you will see output like this:
|
|
|
|
|
|
-```
|
|
|
-Cloning into 'Git_Training'...
|
|
|
-remote: Counting objects: 3, done.
|
|
|
-remote: Total 3 (delta 0), reused 0 (delta 0)
|
|
|
-Unpacking objects: 100% (3/3), done.
|
|
|
-Checking connectivity... done.
|
|
|
-```
|
|
|
+
|
|
|
|
|
|
It has created a 'Git_Training' folder and you can browse into it:
|
|
|
|
|
|
-```
|
|
|
-cd Git_Training
|
|
|
-```
|
|
|
+
|
|
|
|
|
|
Git clone allows you to specify parameters such as the target folder. If you don't specify it the working copy will be named as the project.
|
|
|
|