dev:git
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| dev:git [2024/03/12 14:46] – créée sbestel | dev:git [2024/03/12 14:54] (Version actuelle) – [GIT] sbestel | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== GIT ====== | ====== GIT ====== | ||
| + | * générique : | ||
| + | git status | ||
| + | git log | ||
| + | git clean-f | ||
| + | git show | ||
| ===== Mettre à jour un repo Git ===== | ===== Mettre à jour un repo Git ===== | ||
| Ligne 12: | Ligne 16: | ||
| * Créer une nouvelle branche ldap : git branch ldap | * Créer une nouvelle branche ldap : git branch ldap | ||
| - | * changement | + | * Changement |
| - | * suppression | + | * Suppression |
| * Pousser une brnche distante | * Pousser une brnche distante | ||
| git push gitlab ldap:ldap | git push gitlab ldap:ldap | ||
| - | * Liste à pucegitlab/ldap paramétrée pour suivre la branche distante ldap | + | * gitlab/ldap paramétrée pour suivre la branche distante ldap |
| git branch --set-upstream-to=gitlab/ | git branch --set-upstream-to=gitlab/ | ||
| Ligne 31: | Ligne 35: | ||
| git branch -M main | git branch -M main | ||
| git push -uf origin main | git push -uf origin main | ||
| + | |||
| + | git remote -v show | ||
| + | git fetch gitlab | ||
| + | git push | ||
| - | ===== à voir ===== | + | ===== config |
| + | nano .git/config | ||
| + | |||
| + | ===== à voir ===== | ||
| + | git clone git@gitlab.com: | ||
| + | git config pull.rebase false | ||
| + | git switch --create main | ||
| + | git rebase -i --root | ||
| + | git remote add origin https:// | ||
| + | |||
dev/git.1710254764.txt.gz · Dernière modification : 2024/03/12 14:46 de sbestel
