« RStudio et github » : différence entre les versions

m
(Page créée avec « Catégorie:Tutoriel = Étapes pour commencer = - Créer un repo sur son compte github. Copier l'url ssh par exemple - Depuis RStudio: faire Tools => Project Options => Git/SVN. Choisir Git. Ce changement d'options va faire apparaître un onglet "Git" en haut à droite de RStudio pour le projet concerné. - Ouvrir le terminal depuis RStudio (Onglet git: ⚙️ => Shell) - Depuis le terminal: Ajouter l'origine distante <syntaxhighlight>$git remote add origi... »)
 
Ligne 3 : Ligne 3 :
= Étapes pour commencer =
= Étapes pour commencer =


- Créer un repo sur son compte github. Copier l'url ssh par exemple  
* Créer un repo sur son compte github.
- Depuis RStudio: faire Tools => Project Options => Git/SVN. Choisir Git. Ce changement d'options va faire apparaître un onglet "Git" en haut à droite de RStudio pour le projet concerné.
 
- Ouvrir le terminal depuis RStudio (Onglet git: ⚙️ => Shell)
* Copier l'url ssh par exemple git@github.com:lvaudor/nom_repo.git
- Depuis le terminal: Ajouter l'origine distante  
* Depuis RStudio: faire Tools => Project Options => Git/SVN. Choisir Git. Ce changement d'options va faire apparaître un onglet "Git" en haut à droite de RStudio pour le projet concerné.
<syntaxhighlight>$git remote add origin git@github.com:lvaudor/textometrie_exos.git<syntaxhighlight>
* Ouvrir le terminal depuis RStudio (Onglet git: ⚙️ => Shell)
* Depuis le terminal: Ajouter l'origine distante: <highlightsyntax>$git remote add origin git@github.com:lvaudor/nom_repo.git</highlightsyntax>