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 [17/09/2021 11:52] – Revenir à une version précédente, pour toujours cyrille | informatique:git [18/10/2022 08:20] – [Cancel an add] cyrille | ||
---|---|---|---|
Ligne 75: | Ligne 75: | ||
Rewind local & remote | Rewind local & remote | ||
+ | |||
+ | <WRAP center round important 50%> | ||
+ | Attention, pas de retour arrière possible, c'est pour toujours | ||
+ | </ | ||
<code bash> | <code bash> | ||
Ligne 80: | Ligne 84: | ||
git push -f | 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 96: | Ligne 103: | ||
=== Cancel an add === | === Cancel an add === | ||
- | Annuler le "git add" | + | Annuler le "git add" |
+ | <code bash> | ||
$ git reset < | $ git reset < | ||
+ | </ | ||
=== Amend last commit === | === Amend last commit === | ||
Ligne 185: | Ligne 193: | ||
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