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 [2022/11/02 06:07] – [Des alias pour gagner du temps] alexis | informatique:git [2024/02/09 05:47] (Version actuelle) – alexis | ||
---|---|---|---|
Ligne 25: | Ligne 25: | ||
git config --global commit.template < | git config --global commit.template < | ||
git config --global alias.st ' | git config --global alias.st ' | ||
+ | git config --global push.autoSetupRemote true # Création automatique de la branche distante au moment du partage (commande " | ||
</ | </ | ||
Ligne 57: | Ligne 58: | ||
[commit] | [commit] | ||
template = < | template = < | ||
+ | [push] | ||
+ | autoSetupRemote = true | ||
</ | </ | ||
<WRAP alert> | <WRAP alert> | ||
Ligne 104: | Ligne 107: | ||
pt = !git tag -l | xargs git tag -d && git fetch -t | pt = !git tag -l | xargs git tag -d && git fetch -t | ||
; Remove local MRs (gitlab) | ; Remove local MRs (gitlab) | ||
- | rmmr = !git checkout master && git branch --list ' | + | rmmr = !git reset --hard && |
; Show synchronized branches without remote | ; Show synchronized branches without remote | ||
- | stale-branch = !git fetch --all --prune && git branch --verbose | awk '/ | + | stale-branch = !git fetch --all --prune && git branch --verbose | awk '/\\[gone\\]/ {print $1}' |
</ | </ | ||
<WRAP info> | <WRAP info> | ||
Ligne 614: | Ligne 617: | ||
- [[https:// | - [[https:// | ||
- [[https:// | - [[https:// | ||
+ | - [Et merde, Git!? | ||
+ | |||
informatique/git.1667394427.txt.gz · Dernière modification : 2022/11/02 06:07 de alexis