Wiki » History » Version 1

Gateau, Thibault, 02/19/2019 12:59 PM

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