-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgit_tuto.txt
49 lines (27 loc) · 858 Bytes
/
git_tuto.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
1. git init
2. git add .
3. git commit -m "first commit"
4. git status
5. git remote add origin https://github.com/Lucatim/Domisep.git
6. git config --global user.name [name]
7. git config --global user.email [email]
8. git config --global user.password [password]
9. git push -u origin master
----------------------
1. git commit -a -m "message a envoyer"
2. git push
----------------------
1. git branch test : creer branche de test
2. git checkout test : aller sur la branche test
3. git branch : voir les branches existantes
Apres modif sur la branch :
commit
git push --set-upstream origin test
git checkout master
git merge test
git push
git branch -d test : supprimer la branche de test
----------------------
Git bash
echo 2>.gitignore : creer le fichier .gitignore
Ecrire .idea : ne pas push le dossier .idea propre a Webstorm