informatique: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édenteProchaine révisionLes deux révisions suivantes | ||
informatique:git [02/08/2021 11:30] – [Creadentials] avec HTTPs cyrille | informatique:git [18/02/2022 17:25] – [Log & graph] cyrille | ||
---|---|---|---|
Ligne 71: | Ligne 71: | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | === Revenir à une version précédente, | ||
+ | |||
+ | Rewind local & remote | ||
+ | |||
+ | <WRAP center round important 50%> | ||
+ | Attention, pas de retour arrière possible, c'est pour toujours | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | git reset --hard 4a3ba7 | ||
+ | git push -f | ||
+ | </ | ||
+ | |||
+ | **Gitlab** interdit par défaut le push forcé '' | ||
+ | {{ : | ||
=== Créer un dépôt depuis un projet existant === | === Créer un dépôt depuis un projet existant === | ||
Ligne 176: | Ligne 192: | ||
Delete remote: | Delete remote: | ||
git push origin --delete < | git push origin --delete < | ||
+ | |||
+ | === Log & graph === | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | '' | ||
+ | |||
===== Tools ===== | ===== Tools ===== |
informatique/git.txt · Dernière modification : 25/08/2023 13:01 de cyrille