diff --git a/cdpw_tp1_SERRE_PRUNIER.md b/cdpw_tp1_SERRE_PRUNIER.md index 66f6081d1de195d18edc3e57a5e66e16d46cab34..02f9fd2bc0edc0db0203648e1b313624bf40a165 100644 --- a/cdpw_tp1_SERRE_PRUNIER.md +++ b/cdpw_tp1_SERRE_PRUNIER.md @@ -100,7 +100,35 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge no changes added to commit (use "git add" and/or "git commit -a") ``` 0. On souhaite que ce fichier soit ignoré et ne soit jamais commiter. Réalisez la configuration nécesaire pour que cette regle soit effective `*` + ```git + clserre1@A210PC12:/h/Documents/cdpw $ echo "file2ignore" > .gitignore + clserre1@A210PC12:/h/Documents/cdpw $ git add .gitignore + clserre1@A210PC12:/h/Documents/cdpw $ git commit -am"Q1.12" + [master 9573e3c] Q1.12 + 2 files changed, 20 insertions(+), 2 deletions(-) + create mode 100644 .gitignore + ``` 0. Lister le contenu du repertoire courant, afficher le status et la log + ```git + clserre1@A210PC12:/h/Documents/cdpw $ ls + cdpw_tp1_SERRE_PRUNIER.md file2ignore start + clserre1@A210PC12:/h/Documents/cdpw $ git status + On branch master + Changes not staged for commit: + (use "git add <file>..." to update what will be committed) + (use "git checkout -- <file>..." to discard changes in working directory) + + modified: cdpw_tp1_SERRE_PRUNIER.md + + no changes added to commit (use "git add" and/or "git commit -a") + clserre1@A210PC12:/h/Documents/cdpw $ git log --all --decorate --oneline --graph + * 9573e3c (HEAD -> master) Q1.12 + * 3bd908e Q1.9 + * b28292b Q1.8 + * dd449ba Q1.6 + * 7b7f60f Q1.2 + clserre1@A210PC12:/h/Documents/cdpw $ + ``` 0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*` ##### 2. Les branches