git
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| git [2022/08/01 13:50] – nicoanto | git [2026/09/29 08:07] (Version actuelle) – nicoanto | ||
|---|---|---|---|
| Ligne 19: | Ligne 19: | ||
| </ | </ | ||
| + | Attention : dans GitBash on peut être dans master. | ||
| + | Pour régler cela, il faut renommer la branche Local master à main | ||
| + | < | ||
| + | git branch -m master main | ||
| + | </ | ||
| ===== Commandes utiles ===== | ===== Commandes utiles ===== | ||
| Ligne 28: | Ligne 33: | ||
| </ | </ | ||
| + | ==== Commandes de branches ==== | ||
| + | |||
| + | * MAJ des données git sans merge (utilie pour avoir la liste des branches) | ||
| + | < | ||
| + | git fetch | ||
| + | </ | ||
| + | |||
| + | * Liste des branches | ||
| + | < | ||
| + | git branch -r | ||
| + | </ | ||
| + | |||
| + | * Basculer entre les branches | ||
| + | < | ||
| + | git checkout <branch name> | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| ===== Clone/Push avec erreur de ‘self signed certificate’ ===== | ===== Clone/Push avec erreur de ‘self signed certificate’ ===== | ||
| Ligne 53: | Ligne 76: | ||
| </ | </ | ||
| - | ===== Modification du mat de passe Git sous Windows ===== | + | ===== Modification du mot de passe Git sous Windows ===== |
| - Ouvrir ' | - Ouvrir ' | ||
| Ligne 66: | Ligne 89: | ||
| - Login to GitLab account and goto ' | - Login to GitLab account and goto ' | ||
| - Dans la section " | - Dans la section " | ||
| + | |||
| + | |||
| + | Si on change la clé pour un git, il faut supprimer la ligne dans le fichier ~/ | ||
| + | < | ||
| + | ssh-keygen -R gitlab.paris.exalead.com | ||
| + | </ | ||
| + | |||
| + | Après, en refaisant un git pull, on a les lignes suivantes : | ||
| + | < | ||
| + | $ git pull | ||
| + | The authenticity of host ' | ||
| + | ED25519 key fingerprint is SHA256: | ||
| + | This key is not known by any other names. | ||
| + | Are you sure you want to continue connecting (yes/ | ||
| + | Warning: Permanently added ' | ||
| + | Already up to date. | ||
| + | </ | ||
| ===== Utilisation de SSH-Agent pour rentrer le mot de passe une seule fois ===== | ===== Utilisation de SSH-Agent pour rentrer le mot de passe une seule fois ===== | ||
| Ligne 103: | Ligne 143: | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ===== Pour Stellantis ===== | ||
| + | |||
| + | ==== Génération du package OnePart Central ==== | ||
| + | |||
| + | Dans GitBash, depuis le répertoire / | ||
| + | < | ||
| + | mvn clean package -P skip_reports | ||
| + | </ | ||
| + | |||
| + | ==== Changement de branche ==== | ||
| + | |||
| + | Pour changer de branche | ||
| + | |||
| + | < | ||
| + | $ git branch -r | ||
| + | > origin/ | ||
| + | > origin/ | ||
| + | > origin/ | ||
| + | > origin/main | ||
| + | |||
| + | $ git checkout R_1.3_Bugfixes | ||
| + | > branch ' | ||
| + | > Switched to a new branch ' | ||
| + | |||
| + | $ git status | ||
| + | > On branch R_1.3_Bugfixes | ||
| + | |||
| + | </ | ||
| + | |||
| + | Pour pousser dans la branche | ||
| + | |||
| + | < | ||
| + | $ git push origin R_1.3_Bugfixes | ||
| + | </ | ||
| + | |||
| + | |||
git.1659361849.txt.gz · Dernière modification : (modification externe)
