|
|
|
|
|
by yes_or_gnome
3169 days ago
|
|
Good point. For those that are curious: Clone (--no-checkout): $ git clone --no-checkout https://github.com/Katee/git-bomb.git
Cloning into 'git-bomb'...
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 18 (delta 2), reused 0 (delta 0), pack-reused 12
Unpacking objects: 100% (18/18), done.
From there, you can do some operations like `git log` and `git cat-file -p HEAD` (I use the "dump" alias[1]; `git config --global alias.dump catfile -p`), but not others `git checkout` or `git status`.[1] Thanks to Jim Weirich and Git-Immersion, http://gitimmersion.com/lab_23.html. I never knew the guy, but, ~~8yrs~~ (corrected below) 3.5yrs after his passing, I still go back to his presentations on Git and Ruby often. Edit: And, to see the whole tree: NEXT_REF=HEAD
while [ -n "$NEXT_REF" ]; do
echo "$NEXT_REF"
git dump "${NEXT_REF}"
echo
NEXT_REF=$(git dump "${NEXT_REF}"^{tree} 2>/dev/null | awk '{ if($4 == "d0" || $4 == "f0"){ print $3 } }')
done
|
|
Had the pleasure of meeting him in Singapore in 2013.
Still so much great code of his we use all the time.