Skip to content
Snippets Groups Projects
Commit f96deccf authored by Nicolas  JULLIEN's avatar Nicolas JULLIEN
Browse files

Partie2 Q2

parent 2427558b
No related branches found
No related tags found
No related merge requests found
......@@ -98,11 +98,73 @@ nothing added to commit but untracked files present (use "git add" to track)
echo 'file2ignore' > .gitignore
```
0. Lister le contenu du repertoire courant, afficher le status et la log
```bash
ls
```
```
file2ignore Piat_Jullien_tp1.md start
```
```bash
git status
```
```
On branch master
nothing to commit, working tree clean
```
```bash
git log
```
```
commit 2427558ba3f9d06a536b143ab022dd446307c675
Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>
Date: Mon Jan 8 18:55:12 2018 +0100
Q13
commit 7633f494a8da552658e67a9d2aa195be7bd7ea55
Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>
Date: Mon Jan 8 18:47:09 2018 +0100
Q10
commit 60ee8acb56651230fc78df0c134a35c8e093899a
Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>
Date: Mon Jan 8 18:45:39 2018 +0100
Q9
commit 846659c679f900048496541ff54b78b6222b4611
Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>
Date: Mon Jan 8 18:28:26 2018 +0100
Q5 & Q7
```
0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*`
```bash
git diff Piat_Jullien_tp1.md
```
```
cf. q15.txt
```
##### 2. Les branches
0. Créez une branche portant votre nom et basculer sur cette branche (dans la suite du TP cette branche est désignée par `mybranch`)
```bash
git branch PiatJullien
git checkout PiatJullien
```
```
M Piat_Jullien_tp1.md
Switched to branch 'PiatJullien'
```
0. Lister les branches locales et les fichiers présent dans le répertoire courant `*`
```bash
git branch
```
```
* PiatJullien
master
```
0. Aficher le status de votre repo `*`
0. Créez une branche pour _développer_ la réponse de ce point (nommez là `mybranch-2.4` par exemple)
0. Afficher un historique sous forme de graph (`a dog`) de votre repo
......
q15.txt 0 → 100644
diff --git a/Piat_Jullien_tp1.md b/Piat_Jullien_tp1.md
index 3a879aa..da817b7 100644
--- a/Piat_Jullien_tp1.md
+++ b/Piat_Jullien_tp1.md
@@ -98,6 +98,47 @@ nothing added to commit but untracked files present (use "git add" to track)
echo 'file2ignore' > .gitignore
```
0. Lister le contenu du repertoire courant, afficher le status et la log
+```bash^M
+ls^M
+```^M
+```^M
+file2ignore Piat_Jullien_tp1.md start^M
+```^M
+```bash^M
+git status^M
+```^M
+```^M
+On branch master^M
+nothing to commit, working tree clean^M
+```^M
+```bash^M
+git log^M
+```^M
+```^M
+commit 2427558ba3f9d06a536b143ab022dd446307c675^M
+Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M
+Date: Mon Jan 8 18:55:12 2018 +0100^M
+^M
+ Q13^M
+^M
+commit 7633f494a8da552658e67a9d2aa195be7bd7ea55^M
+Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M
+Date: Mon Jan 8 18:47:09 2018 +0100^M
+^M
+ Q10^M
+^M
+commit 60ee8acb56651230fc78df0c134a35c8e093899a^M
+Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M
+Date: Mon Jan 8 18:45:39 2018 +0100^M
+^M
+ Q9^M
+^M
+commit 846659c679f900048496541ff54b78b6222b4611^M
+Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M
+Date: Mon Jan 8 18:28:26 2018 +0100^M
+^M
+ Q5 & Q7^M
+```^M
0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*`
##### 2. Les branches
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment