mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-19 21:01:20 +02:00
28 lines
No EOL
845 B
Text
28 lines
No EOL
845 B
Text
[descripci鏮]
|
|
|
|
。rea dos 嫫boles que apunten al mismo blob!
|
|
|
|
[configuraci鏮]
|
|
|
|
[objetivo de configuraci鏮]
|
|
|
|
BLOB=$(echo "Soy precioso" | git hash-object -w --stdin)
|
|
git update-index --add --cacheinfo 100644,$BLOB,a
|
|
嫫bol de escritura de git
|
|
git update-index --forzar-eliminar un
|
|
璯dice de actualizaci鏮 de git --add --cacheinfo 100644,$BLOB,b
|
|
嫫bol de escritura de git
|
|
璯dice de actualizaci鏮 de git --force-remove b
|
|
|
|
[ganar]
|
|
|
|
糠BOLES=$(git cat-file --batch-check='%(nombre de objeto) %(tipo de objeto)' --batch-all-objects | 嫫bol grep | cut -f1 -d" ")
|
|
|
|
ALL_TREE_CHILDREN=$(para 糠BOL en $糠BOLES; hacer
|
|
git cat-file -p $糠BOL | cortar -f1 | cortar -f3 -d" "
|
|
hecho)
|
|
|
|
NUMBER_OF_CHILDREN=$(echo "$ALL_TREE_CHILDREN" | wc -l)
|
|
UNIQUE_CHILDREN=$(echo "$ALL_TREE_CHILDREN" | ordenar -u | wc -l)
|
|
|
|
prueba "$NUMBER_OF_CHILDREN" -gt "$UNIQUE_CHILDREN" |