Last active
May 8, 2019 11:58
-
-
Save protolambda/62aea617cd0e51e502f4acf3465eebd3 to your computer and use it in GitHub Desktop.
Minimal git branch reference for Geth
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 init test-geth && cd test-geth | |
git remote add origin https://github.com/ethereum/go-ethereum.git | |
SHA1="$(git ls-remote origin refs/heads/master | cut -f1)" | |
git fetch --no-tags --depth=1 origin "$SHA1" | |
git cat-file commit "$SHA1" | |
du -sh .git | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment