Skip to content

Instantly share code, notes, and snippets.

@theStack
Last active February 18, 2025 01:36
Extract secp256k1proto from bip-frost-dkg repository with history using git-filter-repo
$ git clone https://github.com/BlockstreamResearch/bip-frost-dkg secp256k1proto-extract-history
$ cd secp256k1proto-extract-history
$ git filter-repo --path-rename reference/secp256k1ref:python/secp256k1proto
$ git filter-repo --path-rename python/secp256k1ref:python/secp256k1proto
$ git filter-repo --path python/secp256k1proto
$ git filter-repo --path-rename python/secp256k1proto:src/secp256k1proto
$ uv init --package --lib --name secp256k1proto --python 3.11
$ git add . && git commit -m 'initialized package via "uv init"'
$ git remote add origin https://github.com/theStack/secp256k1proto-playground
$ git push origin master:with_history2
Rebasing via
$ git rebase -i --root --rebase-merges
Questions:
- should we get rid of the secp256k1proto merge commits?
they are part of the history, but feel out-of-place with
pull request numbers referring to another repository
TODO:
- squash fixup commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment