Installation de Git sur un environnement Windows
Voir doc
Création d’un compte Github
Voir doc
Synchroniser un repository pour la première fois
PS> git init
PS> git commit -am "first commit"
PS> git remote add origin url_repository
PS> git push -u origin main
Le -u (--set-upstream) est nécessaire au premier push : sans lui, git push seul échoue avec “The current branch main has no upstream branch”. Une fois le lien établi, un simple git push suffit pour les synchronisations suivantes.
Synchronisation suivante
PS> git commit -am "mon changement"
PS> git push
Ajouter un fichier ou un répertoire à synchroniser
PS> git add fichier
PS> git commit -am "mon changement"
PS> git push