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

reformattage git rm

parent c141fe97
Branches
Tags
No related merge requests found
......@@ -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
......@@ -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`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment