Skip to content

Instantly share code, notes, and snippets.

@protolambda
Last active May 8, 2019 11:58
Show Gist options
  • Save protolambda/62aea617cd0e51e502f4acf3465eebd3 to your computer and use it in GitHub Desktop.
Save protolambda/62aea617cd0e51e502f4acf3465eebd3 to your computer and use it in GitHub Desktop.
Minimal git branch reference for Geth
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