Étapes pour commencer

  • Créer un repo sur son compte github.
  • Copier l'url ssh par exemple git@github.com:lvaudor/nom_repo.git
  • 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: <highlightsyntax>$git remote add origin git@github.com:lvaudor/nom_repo.git</highlightsyntax>