Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elisemaigne
Ecosystème git
Commits
1653ddea
Commit
1653ddea
authored
Dec 02, 2021
by
Elise Maigne
Browse files
simplification + ajout forges à dispo
parent
f4dc3051
Changes
1
Hide whitespace changes
Inline
Side-by-side
presentation.Rmd
View file @
1653ddea
...
...
@@ -372,7 +372,17 @@ Enregistre tous les changements (commits) et permet de partager son dépôt.
]
---
# Un commit = un changement
# Un projet versionné = une succession de commits.
#### Exemple sur forgemia
https://forgemia.inra.fr/elise.maigne/2021_git/-/commits/main
#### Exemple avec gitk
<img src="images/commits_gitk.png", width="90%">
---
# Un commit = un point d'étape
#### 1. On indique à git qu'il doit suivre ces fichiers et on intègre les modifications au prochain commit `git add`
.pull-left[
...
...
@@ -391,7 +401,7 @@ git add nomFichier.R
#### 2. On fait un commit avec `git commit`
```{r, eval=FALSE}
git commit -m "
Ma belle modification
"
git commit -m "
J'explique ce que j'ai fais comme modif
"
```
--
...
...
@@ -419,26 +429,8 @@ widgetframe::frameableWidget(gitsteps)
```
</center>
--
En pratique (chez moi - sur RStudio) :
```{bash, eval=FALSE}
git add .
git commit -m "Ce que j'ai fait comme modif"
```
---
# Un projet versionné = une succession de commits.
#### Exemple sur forgemia
https://forgemia.inra.fr/elise.maigne/2021_git/-/commits/main
#### Exemple avec gitk
<img src="images/commits_gitk.png", width="90%">
---
# Un commit = un changement
# Un commit = un point d'étape
```{r, echo=FALSE, fig.height=0.5}
gitbranch2 <- DiagrammeR::grViz("
...
...
@@ -458,7 +450,7 @@ widgetframe::frameableWidget(gitbranch2)
<img src="images/exemple_commit.png">
---
# E
nvoi des modifications au remote
# E
t le serveur distant ?
#### Envoi des derniers commits au serveur distant
```{bash, eval=FALSE}
...
...
@@ -546,7 +538,7 @@ git diff

- Un dossier `.git` : contient tous les fichiers de gestion de version
(on ne va jamais dedans).
- Un dossier `.git` : contient tous les fichiers de gestion de version
.
--
...
...
@@ -673,6 +665,19 @@ Superviser les "merge" à l'intérieur d'un projet ou permet à une personne ext
Vocabulaire : `merge request` chez GitLab VS `pull request` chez GitHub
---
# Les forges à votre disposition
- GitHuB
- GitLab
- pour les INRAE : forgemia.inra.fr (instance GitLab)
- communauté RENATER : sourcesup.renater.fr (instance FusionForge)
- communauté mathématique française : https://plmlab.math.cnrs.fr (instance GitLab)
---
# Possibilités (pour des statisticiens)
...
...
@@ -757,7 +762,8 @@ Merci aux sites suivants :
- http://rogerdudler.github.io/git-guide/index.fr.html
- Doc de la forgemia : https://forgemia.inra.fr/adminforgemia/doc-public/-/wikis/GIT-sous-Windows
- branches git en graphviz : https://correl.phoenixinquis.net/2015/07/12/git-graphs.html
- Des jolies animations : https://www.miximum.fr/blog/enfin-comprendre-git/
- Comprendre l'index (stage) : https://medium.com/hackernoon/understanding-git-index-4821a0765cf
---
name: bonus
# Bonus - Différence SVN/Git ()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment