Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2017-F2-Forge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Youssef NIDABRAHIM
2017-F2-Forge
Commits
f96deccf
Commit
f96deccf
authored
7 years ago
by
Nicolas JULLIEN
Browse files
Options
Downloads
Patches
Plain Diff
Partie2 Q2
parent
2427558b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Piat_Jullien_tp1.md
+62
-0
62 additions, 0 deletions
Piat_Jullien_tp1.md
q15.txt
+52
-0
52 additions, 0 deletions
q15.txt
with
114 additions
and
0 deletions
Piat_Jullien_tp1.md
+
62
−
0
View file @
f96deccf
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
q15.txt
0 → 100644
+
52
−
0
View file @
f96deccf
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment