Skip to content
Snippets Groups Projects
Commit ef6b3f6c authored by Clement  SERRE's avatar Clement SERRE
Browse files

Q1.14

parent 9573e3ca
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,35 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge ...@@ -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") 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. 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 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 ? `*` 0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*`
##### 2. Les branches ##### 2. Les branches
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment