prog: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 | ||
| prog:git [2024/02/08 09:46] – Ajout de "fatal: unable to access 'xxxxx.git/': error setting certificate file: xxxx\CI_SERVER_TLS_CA_FILE" root | prog:git [2025/10/20 15:34] (Version actuelle) – [Génération de la clé] : utilisation de sign only root | ||
|---|---|---|---|
| Ligne 20: | Ligne 20: | ||
| git config --global lfs.locksverify true | git config --global lfs.locksverify true | ||
| </ | </ | ||
| + | |||
| + | [[prive: | ||
| Si le dépôt demande constamment le mot de passe, il faut soit configurer l' | Si le dépôt demande constamment le mot de passe, il faut soit configurer l' | ||
| Ligne 468: | Ligne 470: | ||
| Checking objects: 100% (812/812), done. | Checking objects: 100% (812/812), done. | ||
| missing tree 2a9e451f85ba5e26dbe34d742105e877b0942570 | missing tree 2a9e451f85ba5e26dbe34d742105e877b0942570 | ||
| + | </ | ||
| + | |||
| + | ====Savoir à quel commit appartient un blob==== | ||
| + | |||
| + | <code bash> | ||
| + | git log --raw --all --find-object=< | ||
| + | </ | ||
| + | |||
| + | et pour un objet LFS | ||
| + | |||
| + | <code bash> | ||
| + | git log -S< | ||
| + | </ | ||
| + | |||
| + | ====Avoir tous les enfants d'un commit==== | ||
| + | |||
| + | <code bash> | ||
| + | find_descendants() { | ||
| + | local sha=$1 | ||
| + | line=$(git rev-list --all --children | grep ^$sha) | ||
| + | |||
| + | if [[ $line == *" "* ]]; then | ||
| + | children=$(echo $line | cut -d' ' -f2-) | ||
| + | for child in $children; do | ||
| + | echo $child | ||
| + | find_descendants $child | ||
| + | done | ||
| + | fi | ||
| + | } | ||
| + | |||
| + | find_descendants $1 | ||
| </ | </ | ||
| ====Suppression des dangling blobs==== | ====Suppression des dangling blobs==== | ||
| Ligne 527: | Ligne 560: | ||
| </ | </ | ||
| - | Choisir une clé '' | + | Choisir une clé '' |
| ====Afficher la clé publique et privée==== | ====Afficher la clé publique et privée==== | ||
| Ligne 633: | Ligne 666: | ||
| L' | L' | ||
| + | ====error: object file .git/ | ||
| + | |||
| + | Pour éviter de devoir tout cloner à nouveau et devoir tout recompiler, il faut tester : | ||
| + | |||
| + | <code bash> | ||
| + | find .git/ | ||
| + | git fetch | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ====gpg: keydb_search failed: Invalid argument==== | ||
| + | |||
| + | < | ||
| + | gpg: keydb_search failed: Invalid argument | ||
| + | gpg: skipped " | ||
| + | [GNUPG:] INV_SGNR 0 XXXXXXXXXXXXXXXX | ||
| + | [GNUPG:] FAILURE sign XXXXXXXXX | ||
| + | gpg: signing failed: Invalid argument | ||
| + | </ | ||
| + | |||
| + | Supprimer le dossier '' | ||
| =====Windows===== | =====Windows===== | ||
| [[https:// | [[https:// | ||
prog/git.1707381999.txt.gz · Dernière modification : de root
