Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacksonhardaker/25ecd6743e3cb9f1e2e2c9536146aac0 to your computer and use it in GitHub Desktop.
Save jacksonhardaker/25ecd6743e3cb9f1e2e2c9536146aac0 to your computer and use it in GitHub Desktop.
# Old Repo
1. Fresh clone
2. Remove origin remote
3. git filter-repo --to-subdirectory-filter foo/bar
# New Repo
1. git add remote og-repo ../path/to/og/repo
2. git pull og-repo main --allow-unrelated-histories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment