Open Jessica-13 opened 2 years ago
VERSION SIMPLE
$ git init
$ git clone https://github.com/User/HTTPSProject.git (Copier l'adresse HTTPS du dossier depuis GitHub)
$ git add *
$ git commit -m "message"
$ git push origin main
En cas de problèmes du type :
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
Voir :
Créer un dépôt sur GitHub Créer un répertoire sur le PC où on souhaite enregistrer le projet, puis aller dans le dossier créé et taper (qui crée un dépôt en local):
git init
Aller à l'intérieur et y copier les fichiers et/ou dossiers que on souhaite télécharger. Puis taper depuis le terminal :
git add *
Cela sélectionne tout le contenu, puis taper :
git commit -m "message"
En pratique, avec la commande 'commit', on charge le projet dans le git HEAD, mais pas encore dans le dépôt distant. Enfin, pour tout télécharger à distance, taper :
git push origin main
En cas de problèmes du type :
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
Voir :
https://stackoverflow.com/questions/68775869/support-for-password-authentication-was-removed-please-use-a-personal-access-to
Pour mettre à jour le dossier sur notre ordinateur :
git pull
Documentation
Git : https://git-scm.com/doc
GitHub : https://docs.github.com/en