Created
November 10, 2022 19:40
-
-
Save jacksonhardaker/25ecd6743e3cb9f1e2e2c9536146aac0 to your computer and use it in GitHub Desktop.
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
# 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