Blog TIL Now Tags Projects About
Terminal window
gh repo clone owner/repo
cd repo/
git sparse-checkout init --cone
git sparse-checkout set infrastructure
git co main
git remote remove origin
uv tool install git-filter-repo
git filter-repo --path infrastructure --force

See ChatGPT chat for more context.