Wiki » History » Version 2

Gateau, Thibault, 02/19/2019 01:02 PM

1 1 Gateau, Thibault
h1. 
2 1 Gateau, Thibault
Create local git repository and initialize it
3 1 Gateau, Thibault
4 2 Gateau, Thibault
h2. 
5 1 Gateau, Thibault
#create a local git server 
6 2 Gateau, Thibault
7 2 Gateau, Thibault
#T1>
8 1 Gateau, Thibault
cd && mkdir serverTestGit && cd serverTestGit
9 1 Gateau, Thibault
mkdir projet.git && cd projet.git
10 1 Gateau, Thibault
git --bare init
11 1 Gateau, Thibault
12 2 Gateau, Thibault
h2. 
13 1 Gateau, Thibault
#initialize it
14 2 Gateau, Thibault
15 2 Gateau, Thibault
#T2>
16 1 Gateau, Thibault
#cloner le repo pseudo-distant
17 1 Gateau, Thibault
cd && mkdir git && cd git
18 1 Gateau, Thibault
git clone <user>@localhost:~/serverTestGit
19 1 Gateau, Thibault
cd serverTestGit
20 1 Gateau, Thibault
21 1 Gateau, Thibault
#configurer l'<user> local
22 1 Gateau, Thibault
git config --global user.email <user@userplace.eu>
23 1 Gateau, Thibault
git config --global user.name <user>
24 1 Gateau, Thibault
25 1 Gateau, Thibault
#faire un premier commit et le pusher
26 1 Gateau, Thibault
echo "lorem ispum \n titi \ toto" >> readme.md
27 1 Gateau, Thibault
git add readme.md
28 1 Gateau, Thibault
git commit -m "initial commit"
29 1 Gateau, Thibault
git push origin master
30 1 Gateau, Thibault
31 1 Gateau, Thibault
32 2 Gateau, Thibault
h2. 
33 2 Gateau, Thibault
#use it...
34 1 Gateau, Thibault
35 1 Gateau, Thibault
36 1 Gateau, Thibault
37 2 Gateau, Thibault
h1. 
38 1 Gateau, Thibault
Useful links
39 1 Gateau, Thibault
40 1 Gateau, Thibault
* https://sourceforge.isae.fr/projects/dcas-soft-espace/repository/raw/supportLight.zip