From 9f2d4eec5d63fa0425363cc0d4db7b1d2072f3d6 Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Mon, 5 Mar 2018 13:00:24 +0100 Subject: [PATCH] reformattage git rm --- Makefile | 2 ++ git_tutorial.md | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c16e0dd..0d8388f 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ BEAMEROPTIONS += --default-image-extension=pdf BEAMEROPTIONS += -V theme:metropolis BEAMEROPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot BEAMEROPTIONS += -V fontsize=smaller +BEAMEROPTIONS += --highlight-style espresso + default: git_tutorial.md pandoc -s $(BEAMEROPTIONS) -o git_tutorial.pdf git_tutorial.md \ No newline at end of file diff --git a/git_tutorial.md b/git_tutorial.md index 1858c90..c279486 100644 --- a/git_tutorial.md +++ b/git_tutorial.md @@ -357,8 +357,6 @@ Changes to be committed: [master 8f76d90] efface donc ce fichier 1 file changed, 1 deletion(-) delete mode 100644 premierfichier.c -[malaspor@perka tutorial]$ ls -ltr -total 0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Retirer un fichier du contrôle de version (2/3) @@ -366,6 +364,8 @@ total 0 ## Commande: `git rm` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash .numberLines} +[malaspor@perka tutorial]$ ls -ltr +total 0 [malaspor@perka tutorial]$ git reset bbb151324289dc2f85468f5721ec1021692dd216 Unstaged changes after reset: D premierfichier.c @@ -380,6 +380,15 @@ Changes not staged for commit: deleted: premierfichier.c no changes added to commit (use "git add" and/or "git commit -a") +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Retirer un fichier du contrôle de version (3/3) + +## Commande: `git rm` + +On peut retrouver le fichier dans l'historique. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash .numberLines} [malaspor@perka tutorial]$ ls -ltr total 0 [malaspor@perka tutorial]$ git checkout premierfichier.c @@ -387,8 +396,6 @@ total 0 total 4 -rw-r--r-- 1 malaspor malaspor 17 5 mar 11:13 premierfichier.c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -% Reformatter ces slides en faire 3. # Commandes et concept un peu plus avancés @@ -397,7 +404,7 @@ Il existe une **grande quantité** de fonctionnalités non discutées ici: 1. `.gitignore` 2. `git branch` 3. `git merge` -4. `git trois lignes de commandes incompréhensibles que seul stackoverflow peut vous donner` +4. `git trois-lignes-de-commandes-incompréhensibles-que-seul stackoverflow-peut-vous-donner` -- GitLab