diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..92b7d538af41924c304666a26a3304219c238237 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +file2ignore diff --git a/REDA_YOUSSEF.md b/REDA_YOUSSEF.md index fb4f61e622a61c1f74c97bd31395c98d52d1bfcc..145b2a92de66bec47c8d240ea37aa7a62740cf28 100644 --- a/REDA_YOUSSEF.md +++ b/REDA_YOUSSEF.md @@ -319,21 +319,47 @@ index 26d82fc..50663bf 100644 git diff ``` ``` -git add . +$ git add * +The following paths are ignored by one of your .gitignore files: +file2ignore +Use -f if you really want to add them. ``` + > On commite cette étape Q1.15 ``` -git commit -m "Q1.15" +$ git commit -m "Q1.15" +[master 717b390] Q1.15 + 1 file changed, 168 insertions(+), 5 deletions(-) ``` ##### 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`) ``` -git branch reda_youssef +$ git branch reda_youssef +$ git checkout reda_youssef +Switched to branch 'reda_youssef' +M REDA_YOUSSEF.md ``` + 0. Lister les branches locales et les fichiers présent dans le répertoire courant `*` ``` -git branch +$ git branch + master +* reda_youssef +``` +``` +$ git ls-files +REDA_YOUSSEF.md +start +``` +``` +$ git add . +warning: LF will be replaced by CRLF in .gitignore. +The file will have its original line endings in your working directory. +``` + > +``` ``` + 0. Aficher le status de votre repo `*` ``` git status