Skip to content
Snippets Groups Projects
Commit 9f2d4eec authored by orestis.malaspin's avatar orestis.malaspin
Browse files

reformattage git rm

parent c141fe97
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ BEAMEROPTIONS += --default-image-extension=pdf ...@@ -4,6 +4,8 @@ BEAMEROPTIONS += --default-image-extension=pdf
BEAMEROPTIONS += -V theme:metropolis BEAMEROPTIONS += -V theme:metropolis
BEAMEROPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot BEAMEROPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot
BEAMEROPTIONS += -V fontsize=smaller BEAMEROPTIONS += -V fontsize=smaller
BEAMEROPTIONS += --highlight-style espresso
default: git_tutorial.md default: git_tutorial.md
pandoc -s $(BEAMEROPTIONS) -o git_tutorial.pdf git_tutorial.md pandoc -s $(BEAMEROPTIONS) -o git_tutorial.pdf git_tutorial.md
\ No newline at end of file
...@@ -357,8 +357,6 @@ Changes to be committed: ...@@ -357,8 +357,6 @@ Changes to be committed:
[master 8f76d90] efface donc ce fichier [master 8f76d90] efface donc ce fichier
1 file changed, 1 deletion(-) 1 file changed, 1 deletion(-)
delete mode 100644 premierfichier.c delete mode 100644 premierfichier.c
[malaspor@perka tutorial]$ ls -ltr
total 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Retirer un fichier du contrôle de version (2/3) # Retirer un fichier du contrôle de version (2/3)
...@@ -366,6 +364,8 @@ total 0 ...@@ -366,6 +364,8 @@ total 0
## Commande: `git rm` ## Commande: `git rm`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash .numberLines} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash .numberLines}
[malaspor@perka tutorial]$ ls -ltr
total 0
[malaspor@perka tutorial]$ git reset bbb151324289dc2f85468f5721ec1021692dd216 [malaspor@perka tutorial]$ git reset bbb151324289dc2f85468f5721ec1021692dd216
Unstaged changes after reset: Unstaged changes after reset:
D premierfichier.c D premierfichier.c
...@@ -380,6 +380,15 @@ Changes not staged for commit: ...@@ -380,6 +380,15 @@ Changes not staged for commit:
deleted: premierfichier.c deleted: premierfichier.c
no changes added to commit (use "git add" and/or "git commit -a") 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 [malaspor@perka tutorial]$ ls -ltr
total 0 total 0
[malaspor@perka tutorial]$ git checkout premierfichier.c [malaspor@perka tutorial]$ git checkout premierfichier.c
...@@ -387,8 +396,6 @@ total 0 ...@@ -387,8 +396,6 @@ total 0
total 4 total 4
-rw-r--r-- 1 malaspor malaspor 17 5 mar 11:13 premierfichier.c -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 # Commandes et concept un peu plus avancés
...@@ -397,7 +404,7 @@ Il existe une **grande quantité** de fonctionnalités non discutées ici: ...@@ -397,7 +404,7 @@ Il existe une **grande quantité** de fonctionnalités non discutées ici:
1. `.gitignore` 1. `.gitignore`
2. `git branch` 2. `git branch`
3. `git merge` 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`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment