|
@@ -1,18 +1,16 @@
|
|
|
# Set up your working environment
|
|
|
|
|
|
-## Exercise 1 – Git global configuration
|
|
|
+## Exercise 1 – Git global configuration and Github configuration
|
|
|
|
|
|
First of all you will have to configure git locally in your desktop:
|
|
|
|
|
|
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 – Github configuration
|
|
|
-
|
|
|
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 administrators of this (these) project(s) asking access to.
|
|
|
|
|
|
-## Exercise 3 – Clone into a working environment
|
|
|
+## Exercise 2 – Clone into a working environment
|
|
|
|
|
|
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):
|
|
|
|
|
@@ -77,3 +75,35 @@ Date: Thu Dec 3 19:04:16 2015 +0100
|
|
|
Add readme
|
|
|
```
|
|
|
|
|
|
+## Exercise 3 – Basics operation
|
|
|
+
|
|
|
+### Make some changes new-file.txt
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+### Commit your local changes to your local repository
|
|
|
+
|
|
|
+Click with the right mouse button and click on “Git Commit”
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+You should see the following window:
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+In the message section, write a short summary of your commit. It is good practice to always have meaningful messages. Do not forget to add your files in the bottom part of the window.
|
|
|
+When you are done with these steps, you can click on [Commit] and you should see the following window:
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+In this window, you can see how many files were changed and how many insertions and/or deletions were made. If you are satisfied with the information just click on [Push].
|
|
|
+
|
|
|
+### Push your changes to the remote repository in GitHub
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+In this window, you can manage to which branch you are pushing your files, but we will talk about branches later in the exercise. For now, just click on [OK] and your file will be pushed to the master branch.
|
|
|
+
|
|
|
+### Check whether your changes are online:
|
|
|
+
|
|
|
+Open your GitHub repository in your browser and click on new-file.txt. In there you should see the content, which you have written. On the last screenshot, you can see the commit message is written in the second column of the commit you have made. You can use this column to get more information about which files were changed and what has been changed. That’s why it’s always good practice to write meaningful commit messages.
|