tech:notes_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 | ||
| tech:notes_git [2026/07/01 17:36] – Jean-Baptiste | tech:notes_git [2026/07/29 14:22] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 137: | Ligne 137: | ||
| * https:// | * https:// | ||
| * Git-flow | * Git-flow | ||
| + | * https:// | ||
| Ligne 187: | Ligne 188: | ||
| git grep " | git grep " | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Les branches | ||
| + | |||
| + | ### How do I clean outdated branches? | ||
| + | |||
| + | git fetch --prune is the best utility for cleaning outdated branches. It will connect to a shared remote repository remote and fetch all remote branch refs. It will then delete remote refs that are no longer in use on the remote repository. | ||
| + | |||
| + | ~~~bash | ||
| + | git fetch --prune | ||
| + | ~~~ | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | |||
| + | ### Does git remote prune origin delete the local branch? | ||
| + | |||
| + | ~~~bash | ||
| + | git remote prune origin | ||
| + | ~~~ | ||
| + | |||
| + | No git remote prune origin will only delete the refs to remote branches that no longer exist. Git stores both local and remote refs. A repository will have local/ | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | |||
| + | |||
tech/notes_git.1782920199.txt.gz · Dernière modification : de Jean-Baptiste
