diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..92b7d538af41924c304666a26a3304219c238237 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +file2ignore diff --git a/cdpw_tp1_SERRE_PRUNIER.md b/cdpw_tp1_SERRE_PRUNIER.md index 95c9332c1b26206da19cb28ad05711911b6b8d25..66f6081d1de195d18edc3e57a5e66e16d46cab34 100644 --- a/cdpw_tp1_SERRE_PRUNIER.md +++ b/cdpw_tp1_SERRE_PRUNIER.md @@ -73,15 +73,32 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge ```git clserre1@A210PC12:/h/Documents/cdpw $ echo "18:35 08/01/2018" > start clserre1@A210PC12:/h/Documents/cdpw $ git add . - warning: LF will be replaced by CRLF in start. - The file will have its original line endings in your working directory. clserre1@A210PC12:/h/Documents/cdpw $ git commit -m"Q1.9" [master a49be37] Q1.9 2 files changed, 10 insertions(+) create mode 100644 start ``` 0. Créer un nouveau fichier : file2ignore + ```git + clserre1@A210PC12:/h/Documents/cdpw $ touch file2ignore + ``` 0. Afficher la status de votre copie de travail + ```git + 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 + + Untracked files: + (use "git add <file>..." to include in what will be committed) + + file2ignore + + 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 `*` 0. Lister le contenu du repertoire courant, afficher le status et la log 0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*`