여러가지
[git] 특정 repository의 모듈을 다른 repository로 옮기기 (이력 유지)
git에서 특정 repository에 있는 특정 모듈을 다른 repository로 이동하려고 할 때 이력과 함께 옮기는 방법이다. 일단 아래의 그림을 한번 보자. [대상 repo] https://github.com/company/project-curr.git [이동 repo] https://github.com/company/project-new.git component 하위에 특정 message 모듈을 project-new의 message로 이동할 때 기본적으로 move나 복사를 하면 git 이력이 유지되지 않는다. 이력을 유지하면서 이동하는 방법을 알아보자. 1. 별도의 디렉토리에 작업환경 구성 refactoring 디렉토리를 생성하여 각 repo에서 소스를 내려받자. 각 작업은 develop 브랜치를..
2024. 2. 27. 13:44