Skip to content
Snippets Groups Projects
Commit 17ee53a6 authored by FUSCIELLO Baptiste's avatar FUSCIELLO Baptiste
Browse files

version final tp

parent 4a913d63
No related branches found
No related tags found
No related merge requests found
4) Initialiser un dépot local git: git init
5) git status: fichier / répertoire présent dans le git (non suivis)
6) git statut: fichier rouge = non considéré
7) git add ...: indexer les fichiers
8) git status: si fichier plus la = indexés
9) git commit -m "Premier commit"
10)git log: affiche les commits
II)
5/6/7) Refresh la page et les fichiers sont bien visible sur la page
III)
1) git status: modifié compte_rendu.txt en rouge
2) git add qualdev
commit _m "Modification du compte rendu"
3) git add src
git commit -m "modification fichier src (helloworld.ts + io.ts)"
git push
4) git add src
commit -m "supression helloworld.ts"
git push
5) git add src
commit -m "rename io.ts en entrees-sorties.ts"
git push
7) git fetch
git status
8) git push
TP2:
Situation 1:
1) touch alice.txt
2) git add alice.txt, git commit -m "création du fichier alice"
3) ls -la
5) git push
6) ls -la
7) git status
8) git pull
9) ls -la
10) git log
11) git pull
Situation 2:
cas 1:
1) nano alice.txt, git add alice.txt, git commit -m "modification fichier alice", git pull, git push
2)touch bob.txt
3) git pull
cas 2:
1) git add bob.txt, git commit -m "Creation de bob.txt"
2) nano alice.txt, git add alice.txt, git commit -m "modification fichier alice", git pull, git push
3) git pull
4) git merge origin/main
5) git push
6) git pull
cas 3:
1) nano alice.txt, git add alice.txt, git commit -m "modification fichier alice", git pull, git push
2) nano bob.txt, git add bob.txt, git commit -m "modification fichier bob"
3) git push
4) git pull, git config -pull.rebase false, git push
5) git pull
situation 3:
1) nano alice.txt
2) git add alice.txt, git commit -m "modification fichier alice", git pull, git push
3) nano alice.txt
4) git add alice.txt, git commit -m "modification fichier alice", git pull, git push
5) git commit -m "modification fichier alice"
6) git pull, git merge origin/main
9)a) git status
9)b) nano alice.txt
10) git add alice.txt, git status
11) git commit -m "modification fichier alice"
12) git pull, git push
13) commit -a -m "version finale tp", git pull, git push
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment