Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FUSCIELLO Baptiste
tp-git
Commits
17ee53a6
Commit
17ee53a6
authored
3 months ago
by
FUSCIELLO Baptiste
Browse files
Options
Downloads
Patches
Plain Diff
version final tp
parent
4a913d63
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compte_rendu.txt
+75
-0
75 additions, 0 deletions
compte_rendu.txt
with
75 additions
and
0 deletions
compte_rendu.txt
0 → 100644
+
75
−
0
View file @
17ee53a6
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment