Cours:GitQtCreator : Différence entre versions
(Page créée avec « =s'autentifier sur github= *créer un compte sur [https://github.com/ github] *cliquer sur l'icône du profil en haut à droite **settings **puis en bas à gauche "devel... ») |
(→sur qtcreator) |
||
| (7 révisions intermédiaires par 2 utilisateurs non affichées) | |||
| Ligne 17 : | Ligne 17 : | ||
*choisir https | *choisir https | ||
*Paste an authentication token | *Paste an authentication token | ||
| + | |||
| + | =sur qtcreator= | ||
| + | *créer un projet | ||
| + | *outil/git | ||
| + | **création du dépot (laisser le répertoire du projet) | ||
| + | **depot distant/Manage Remote | ||
| + | ***ajouter url : | ||
| + | ***nom : vehiculeAutonome1A ou vehiculeAutonome1B | ||
| + | ***url : https://github.com/bjacquot/vehiculeAutonome1A.git | ||
| + | ***ou | ||
| + | ***url : https://github.com/bjacquot/vehiculeAutonome1B.git | ||
| + | **bouton récupérer | ||
| + | **depot local : branches | ||
| + | ** clic droit sur master : add | ||
| + | ** annuler les changements locaux | ||
| + | |||
| + | {{Rouge|Si pas branche visible :}} | ||
| + | *faire un nouveau commit avec une fichier quelconque | ||
| + | *recharger les branches | ||
| + | *renommer la branche locale => master2 par ex | ||
| + | *ajouter la branche distante | ||
| + | *supprimer la branche locale créée précédemment (ex master2) | ||
| + | |||
| + | =envoyer des modifs sur github= | ||
| + | *outil/git/depot local/commit | ||
| + | **sélectionner les fichiers à envoyer | ||
| + | **saisir un descriptif | ||
| + | *outil/git/depot distant/push | ||
Version actuelle datée du 16 octobre 2024 à 10:46
s'autentifier sur github
- créer un compte sur github
- cliquer sur l'icône du profil en haut à droite
- settings
- puis en bas à gauche "developer settings"
- personnal access tokens
- tokens (classic)
- generate new token (classic)
- cocher au moins 'repo', 'admin:org', 'workflow'. write:packages
- dans un terminal sur la machine
gh auth login
- choisir GitHub.com
- choisir https
- Paste an authentication token
sur qtcreator
- créer un projet
- outil/git
- création du dépot (laisser le répertoire du projet)
- depot distant/Manage Remote
- ajouter url :
- nom : vehiculeAutonome1A ou vehiculeAutonome1B
- url : https://github.com/bjacquot/vehiculeAutonome1A.git
- ou
- url : https://github.com/bjacquot/vehiculeAutonome1B.git
- bouton récupérer
- depot local : branches
- clic droit sur master : add
- annuler les changements locaux
Si pas branche visible :
- faire un nouveau commit avec une fichier quelconque
- recharger les branches
- renommer la branche locale => master2 par ex
- ajouter la branche distante
- supprimer la branche locale créée précédemment (ex master2)
envoyer des modifs sur github
- outil/git/depot local/commit
- sélectionner les fichiers à envoyer
- saisir un descriptif
- outil/git/depot distant/push