Skip to content
Snippets Groups Projects
Commit 03c30178 authored by NIDABRAHIM Youssef's avatar NIDABRAHIM Youssef
Browse files

Q2.2

parent 717b390a
No related branches found
No related tags found
No related merge requests found
file2ignore
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment