Wiki » History » Version 8
Gateau, Thibault, 02/19/2019 03:07 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 | 8 | Gateau, Thibault | git clone <user>@localhost:~/serverTestGit/projet.git |
19 | 7 | Gateau, Thibault | cd projet |
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 | 6 | Gateau, Thibault | echo -e "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 | 4 | Gateau, Thibault | * example of .gitconfig: https://sourceforge.isae.fr/projects/iut_testing/repository/revisions/master/entry/.gitconfig |
41 | 4 | Gateau, Thibault | * this readme.md: https://sourceforge.isae.fr/projects/iut_testing/repository/revisions/master/entry/localGitTutorial.md |
42 | 4 | Gateau, Thibault | * tutorials: |
43 | 5 | Gateau, Thibault | - official: https://git-scm.com/docs/gittutorial |
44 | 4 | Gateau, Thibault | - interactive: https://www.katacoda.com/courses/git |
45 | 4 | Gateau, Thibault | - branching interactive: https://learngitbranching.js.org/ |
46 | 4 | Gateau, Thibault | - smartgit: https://www.syntevo.com/smartgit/download/ |
47 | 3 | Gateau, Thibault | |
48 | 3 | Gateau, Thibault | h1. |
49 | 3 | Gateau, Thibault | Useful commands |