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édente | ||
| informatique:git [27/11/2024 12:38] – cyrille | informatique:git [01/02/2026 09:50] (Version actuelle) – [Remove file from git] cyrille | ||
|---|---|---|---|
| Ligne 20: | Ligne 20: | ||
| Git commands tips: | Git commands tips: | ||
| - | * https:// | + | * https:// |
| ===== Credentials ===== | ===== Credentials ===== | ||
| Ligne 236: | Ligne 236: | ||
| Delete remote: | Delete remote: | ||
| git push origin --delete < | git push origin --delete < | ||
| + | |||
| + | Des branches supprimées (local & remote) apparaissent toujours: | ||
| + | |||
| + | < | ||
| + | $ git branch -a | ||
| + | * main | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | |||
| + | $ git remote prune origin --dry-run | ||
| + | Élimination de origin | ||
| + | URL : git@framagit.org: | ||
| + | * [élaguerait] origin/ | ||
| + | * [élaguerait] origin/ | ||
| + | * [élaguerait] origin/ | ||
| + | * [élaguerait] origin/ | ||
| + | |||
| + | $ git remote prune origin | ||
| + | Élimination de origin | ||
| + | URL : git@framagit.org: | ||
| + | * [élagué] origin/ | ||
| + | * [élagué] origin/ | ||
| + | * [élagué] origin/ | ||
| + | * [élagué] origin/ | ||
| + | |||
| + | $ git branch -a | ||
| + | * main | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | </ | ||
| + | |||
| + | === Remove file from git === | ||
| + | |||
| + | Supprimer des fichiers du dépôt git sans les supprimer localement. Mais ça ne les enlève pas de l' | ||
| + | |||
| + | < | ||
| + | $ git rm --cached -r .opencode/ | ||
| + | |||
| + | $ git status | ||
| + | |||
| + | Fichiers non suivis: | ||
| + | (utilisez "git add < | ||
| + | .opencode/ | ||
| + | </ | ||
| === Log & graph === | === Log & graph === | ||
informatique/git.1732707518.txt.gz · Dernière modification : de cyrille
