Created
August 26, 2015 16:07
-
-
Save gswallow/9b55e3b702dd1abd788c to your computer and use it in GitHub Desktop.
Fun with git clone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --mirror git@github.com:indigo-biosystems/ascent-assays.git | |
du -sh du -sh ascent-assays.git/ | |
21M ascent-assays.git/ | |
The second column, "1," is the number of hard links to the file: | |
ls -l ascent-assays.git/objects/pack/pack-612f3079a7f84b1fddeb091d9f35bb72ecd0d45a.* | |
-r--r--r-- 1 indigo_chef indigo_chef 596800 Aug 26 10:39 ascent-assays.git/objects/pack/pack-612f3079a7f84b1fddeb091d9f35bb72ecd0d45a.idx | |
-r--r--r-- 1 indigo_chef indigo_chef 20896217 Aug 26 10:39 ascent-assays.git/objects/pack/pack-612f3079a7f84b1fddeb091d9f35bb72ecd0d45a.pack | |
git clone ascent-assays.git vanilla -b vanilla_poweredbyascent | |
du -sh vanilla | |
27M vanilla | |
ls -l ascent-assays.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.* | |
-r--r--r-- 2 indigo_chef indigo_chef 596940 Aug 26 11:22 ascent-assays.git/objects/pack/pack-612f3079a7f84b1fddeb091d9f35bb72ecd0d45a.idx | |
-r--r--r-- 2 indigo_chef indigo_chef 20896977 Aug 26 11:22 ascent-assays.git/objects/pack/pack-612f3079a7f84b1fddeb091d9f35bb72ecd0d45a.pack | |
First column is inode number: | |
ls -li ascent-assays.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.* | |
1065910 -r--r--r-- 2 indigo_chef indigo_chef 596940 Aug 26 11:22 ascent-assays.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.idx | |
1065909 -r--r--r-- 2 indigo_chef indigo_chef 20896977 Aug 26 11:22 ascent-assays.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.pack | |
ls -li vanilla/.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.* | |
1065910 -r--r--r-- 2 indigo_chef indigo_chef 596940 Aug 26 11:22 vanilla/.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.idx | |
1065909 -r--r--r-- 2 indigo_chef indigo_chef 20896977 Aug 26 11:22 vanilla/.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.pack | |
Difference of 6012 1K blocks: | |
df | |
/dev/mapper/vg00-root 17600380 10984796 5698492 66% / | |
rm -rf vanilla | |
df | |
/dev/mapper/vg00-root 17600380 10978784 5704504 66% / | |
git clone ascent-assays.git vanilla -b vanilla_poweredbyascent | |
rm -rf ascent-assays.git/ | |
git clone --mirror git@github.com:indigo-biosystems/ascent-assays.git | |
ls -li vanilla/.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.* | |
1065910 -r--r--r-- 1 indigo_chef indigo_chef 596940 Aug 26 11:22 vanilla/.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.idx | |
1065909 -r--r--r-- 1 indigo_chef indigo_chef 20896977 Aug 26 11:22 vanilla/.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.pack | |
ls -li ascent-assays.git/objects/pack/* | |
1066244 -r--r--r-- 1 indigo_chef indigo_chef 596940 Aug 26 11:32 ascent-assays.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.idx | |
1065913 -r--r--r-- 1 indigo_chef indigo_chef 20896977 Aug 26 11:32 ascent-assays.git/objects/pack/pack-75e7d5b1d7f3b63a69ffcadb6e196ed61212cce6.pack | |
Difference of 27004 1K blocks: | |
df | |
/dev/mapper/vg00-root 17600380 11005788 5677500 66% / | |
rm -rf vanilla | |
df | |
/dev/mapper/vg00-root 17600380 10978784 5704504 66% / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment