diff --git a/Bertoni Walczyszyn tp1 cpw.md b/Bertoni Walczyszyn tp1 cpw.md index 24d2b789d97c6e5e0adb5e1afb42188958904ea0..d503c57461eaa8b8c0ca77ec7b9f81469934d03a 100644 --- a/Bertoni Walczyszyn tp1 cpw.md +++ b/Bertoni Walczyszyn tp1 cpw.md @@ -52,12 +52,11 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge renamed: tp1 cpw.md -> Bertoni Walczyszyn tp1 cpw.md - - $ git commit -a --amend -m"modification du nom" - [master 4773e48] modification du nom - Date: Mon Jan 8 18:30:28 2018 +0100 - 1 file changed, 8 insertions(+), 87 deletions(-) - rename tp1 cpw.md => Bertoni Walczyszyn tp1 cpw.md (61%) + $ git commit -a --amend -m"modification du nom" + [master 4773e48] modification du nom + Date: Mon Jan 8 18:30:28 2018 +0100 + 1 file changed, 8 insertions(+), 87 deletions(-) + rename tp1 cpw.md => Bertoni Walczyszyn tp1 cpw.md (61%) 0. Afficher l'historique de votre repo @@ -80,12 +79,81 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge de nom du fichier. 0. Créer un nouveau fichier, nommé start, contenant la date et l'heure actuelle `*` + $ git add * + + $ git commit -m "ajout fichier start" + [master 39cc64e] ajout fichier start + 2 files changed, 55 insertions(+), 2 deletions(-) + create mode 100644 start.txt + 0. Créer un nouveau fichier : file2ignore 0. Afficher la status de votre copie de travail + + $ git status + On branch master + Untracked files: + (use "git add <file>..." to include in what will be committed) + + file2ignore.txt + + nothing added to commit but untracked files present (use "git add" to track) + 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 `*` + $ touch .gitignore + $ echo .gitignore > file2ignore.txt + $ git add .gitignore + warning: LF will be replaced by CRLF in .gitignore. + The file will have its original line endings in your working directory. + $ git commit -m "ajout .gitignore" + [master b710486] ajout .gitignore + 1 file changed, 1 insertion(+) + create mode 100644 .gitignore + 0. Lister le contenu du repertoire courant, afficher le status et la log + + $ ls -a + ./ ../ .git/ .gitignore 'Bertoni Walczyszyn tp1 cpw.md' file2ignore.txt start.txt + + $ 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: Bertoni Walczyszyn tp1 cpw.md + + no changes added to commit (use "git add" and/or "git commit -a") + + $ git log + commit 8d099642e935da8dfb10e45c15dfdeb6baf21718 (HEAD -> master) + Author: bertoni <marion_bertoni@outlook.fr> + Date: Mon Jan 8 18:53:56 2018 +0100 + + ajout .gitignore + + commit 39cc64eb63efc636e37df435d7f4fb1c1b8a769b + Author: bertoni <marion_bertoni@outlook.fr> + Date: Mon Jan 8 18:43:46 2018 +0100 + + ajout fichier start + + commit 4773e48d22ecbca3b1d7e07ae3e6893fb1e7859b + Author: bertoni <marion_bertoni@outlook.fr> + Date: Mon Jan 8 18:30:28 2018 +0100 + + modification du nom + + commit a95c3e051181aa16b2a2e8bd95fb7c2c65a690d3 + Author: bertoni <marion_bertoni@outlook.fr> + Date: Mon Jan 8 18:21:02 2018 +0100 + + premier ajout + + 0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*` + + ##### 2. Les branches 0. Créez une branche portant votre nom et basculer sur cette branche (dans la suite du TP cette branche est désignée par `mybranch`) 0. Lister les branches locales et les fichiers présent dans le répertoire courant `*`