4 ms·
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'
by yes_or_gnome 9y 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 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
- matthewrudy 9y agoSad one to nitpick, but Jim died in 2014. So ~3.5 years ago. Had the pleasure of meeting him in Singapore in 2013. Still so much great code of his we use all the time.
- yes_or_gnome 9y agoThanks for the correction, he truly was a brilliant mind. One of my regrets was not being active and outgoing enough to go meet him myself. I was lived in the Cincinnati area from 2007-2012. I first got started with Ruby in 2009, and quickly became aware of who he was (Rake, Bundler, etc) and that he lived/worked close by. But, at the time, I wasn't interested in conferences, meetups, or simply emailing someone to say thanks.