Move a directory to another git repository while keeping the history
I'm moving a folder from one git repo to another which already exists, e.g.: repo-1 ---- dir1 ---- dir2 ---- dir-to-move ---- dir4 repo-2 ---- dir1 ---- dir2 In the end I want the repos to look like repo-1 ---- dir1 ---- dir2 ---- dir-to-move ---- dir4 repo-2 ---- dir1 ---- dir2 ---- dir-to-move That is, for a time dir-to-move will exist in both repos. But eventually I'll migrate the latest changes to repo-2 and remove dir-to-move from repo-1. My research Initially, I believed that I need to use git filter-branch as described here: How to move files from one git repo to another preserving hist
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.