ChristopherHousseaux / CH2023-CIRST-01

Creating and accessing a repository with RStudio
1 stars 0 forks source link

Tâche #3 et #4 : sauvegarder les modifications, "commit", et push de local au remote #8

Open ChristopherHousseaux opened 1 year ago

ChristopherHousseaux commented 1 year ago

Comment sauvegarder les modifications et les "commit" dans le projet (pss... git add et git commit -m "message") AVEC et SANS Rstudio?

Répond aussi à cette question :

Comment push les modifications faites en local? - DONE

ChristopherHousseaux commented 1 year ago

https://github.com/git-guides/git-add

ChristopherHousseaux commented 1 year ago

Pull la version la plus récente de mon repo sur GitHub

  1. Confirmer que j'ai la version la plus récente du Repo en appuyant sur "Pull" dans RStudio.
  2. OU, utiliser [git pull] dans le terminal
ChristopherHousseaux commented 1 year ago

Modifier un document

  1. Modifier rapidement un document (par exemple, README.md)
  2. Sauvegarder le document
ChristopherHousseaux commented 1 year ago

Rentrer dans la console le document à envoyer pour le prochain commit

  1. Écrire dans le terminal de RStudio [git add README.md]
  2. Cela va identifier le document vers le Staging, pour le prochain Commit
ChristopherHousseaux commented 1 year ago

Commit les documents

  1. Écrire dans le terminal de RStudio [git commit -m "MON MESSAGE"]
ChristopherHousseaux commented 1 year ago

Push les modifications à la branche (ou main)

  1. Écrire dans le terminal de RStudio [git push -u origin branche-ou-main]
  2. OU, appuyer sur le bouton "Push" dans RStudio.