|
@@ -4,10 +4,36 @@
|
|
|
|
|
|
Repository for training Git session
|
|
Repository for training Git session
|
|
|
|
|
|
-## Overview
|
|
|
|
-
|
|
|
|
-- Please see the [Documentation](http://www.climate.be/Git_Training/docs) for common usages and change log.
|
|
|
|
-- Having trouble? Get help with [Troubleshooting](http://www.climate.be/Git_Training/docs/troubleshooting.html)
|
|
|
|
|
|
+## Getting started
|
|
|
|
+
|
|
|
|
+Prepare your environment for the first use of Git.
|
|
|
|
+
|
|
|
|
+For instance:
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+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
|
|
|
|
+```
|
|
|
|
+Clone the Git_Training repository.
|
|
|
|
+
|
|
|
|
+For instance:
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+git clone http://my_login@www.climate.be:3000/TECLIM/Git_Training.git
|
|
|
|
+```
|
|
|
|
+Or:
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+[ ! -f ~/.ssh/id_rsa.pub ] && ssh-keygen -t rsa
|
|
|
|
+cat ~/.ssh/id_rsa.pub | xclip -sel clip
|
|
|
|
+```
|
|
|
|
+Paste in GOGS: ssh-keys tab (Settings), and:
|
|
|
|
+```
|
|
|
|
+git clone ssh://git@www.climate.be:3022/TECLIM/Git_Training.git
|
|
|
|
+```
|
|
|
|
|
|
## Features
|
|
## Features
|
|
|
|
|