Skip to content
Snippets Groups Projects
Commit abfd2d91 authored by NIDABRAHIM Youssef's avatar NIDABRAHIM Youssef
Browse files

Q1.7

parent 3ec344ec
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@
# Infos étudiant :
Par binôme Nom Prénom:
* BENCHRAA Mohamed Reda
* NIDABRAHIM Youssef
* Mohamed Reda BENCHRAA
* Youssef NIDABRAHIM
## TP 1
......@@ -31,23 +31,42 @@ $ git commit -m "Q1.3"
1 file changed, 258 insertions(+)
create mode 100644 cr.md
```
0. Afficher la status de votre copie de travail
```
git staus
$ git status
On branch master
nothing to commit, working tree clean
```
0. Modifiez le CR pour supprimer la première partie et indiquez vos noms (n'oublier pas de faire un `git add` pour marque le fichier comme devant être ajouté) `*`
```
git add .
git commit -m "Q1.5"
$ git add .
```
> On commite cette étape Q1.5
```
$ git commit -m "Q1.5"
[master 6866275] Q1.5
1 file changed, 7 insertions(+), 3 deletions(-)
```
0. Afficher l'historique de votre repo
```
git log
$ git log
commit 80f71a0487d0b236a26bfd9e540582b68cad7943
Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
Date: Mon Feb 12 21:15:48 2018 +0100
Q1.5
commit 3ec344ecfd24df41ca97396f27b52ec570297ce3
Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
Date: Mon Feb 12 21:02:43 2018 +0100
Q1.3
```
0. Renommer ce fichier en préfixant avec vos noms en amendant le commit précédent (`git commit -m "mon message"` pour indiquer le mesage de commit directement) `*`
```
git mv tp1.md BENCHRAA_NIDABRAHIM.md
git add .
$ git mv cr.md REDA_YOUSSEF.md
$ git add *
git commit -m "Q1.7" --amend
```
0. Afficher l'historique de votre repo
......
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