git:move-files-to-another-repo-keep-history
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git:move-files-to-another-repo-keep-history [2023/11/24 10:36] – odefta | git:move-files-to-another-repo-keep-history [2025/01/02 18:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| It should de downloaded first from https:// | It should de downloaded first from https:// | ||
| + | < | ||
| python3 git-filter-repo --force --path src/ | python3 git-filter-repo --force --path src/ | ||
| + | </ | ||
| 3) In destination repo (B) we should add A as a remote source repo | 3) In destination repo (B) we should add A as a remote source repo | ||
| + | < | ||
| git remote add source C:\repoA | git remote add source C:\repoA | ||
| + | </ | ||
| source - remote repo name | source - remote repo name | ||
| Line 23: | Line 27: | ||
| 4) From B import data from A: | 4) From B import data from A: | ||
| + | < | ||
| git fetch source | git fetch source | ||
| + | </ | ||
| 5) From B, merge A branch: | 5) From B, merge A branch: | ||
| + | < | ||
| git merge source/ | git merge source/ | ||
| + | </ | ||
| 6) From B, remove A: | 6) From B, remove A: | ||
| + | < | ||
| git remote remove source | git remote remove source | ||
| + | </ | ||
| 7) From B, push changes: | 7) From B, push changes: | ||
| + | |||
| + | < | ||
| git push " | git push " | ||
| + | </ | ||
| < | < | ||
git/move-files-to-another-repo-keep-history.1700822205.txt.gz · Last modified: (external edit)
