Closed occidere closed 6 years ago
상황: 2018-cap1-2/src 내부에 Coway/ 폴더를 생성해 로그를 유지한 상태로 Coway 프로젝트를 이전하고자 함
[2018-cap1-2 (master)]$ git remote add Coway ../Coway/ [2018-cap1-2 (master)]$ git fetch Coway From ../Coway * [new branch] master -> Coway/master
[2018-cap1-2 (master)]$ git checkout -b temp Coway/master Branch temp set up to track remote branch master from Coway. Switched to a new branch 'temp'
[2018-cap1-2 (temp)]$ mkdir Coway [2018-cap1-2 (temp)]$ git mv * Coway/ [2018-cap1-2 (temp)]$ git add . [2018-cap1-2 (temp)]$ git commit -a -m "move Coway Project into nested Coway dir"
[2018-cap1-2 (temp)]$ git checkout master Switched to branch 'master' [2018-cap1-2 (master)]$ git merge temp // 충돌 알아서 해결 [2018-cap1-2 (master)]$ git push origin master
[2018-cap1-2 (master)]$ git remote remove Coway [2018-cap1-2 (master)]$ git branch -D temp
참고: http://gypark.pe.kr/wiki/Git/%EC%A0%80%EC%9E%A5%EC%86%8C%EB%B3%91%ED%95%A9
[38d7e4f] Interpreter 프로젝트 이전 완료
나는 개별 수행한 튜토리얼 같은게 대부분이라서 알아서 커밋할게
[c1d7d83] Coway Server 프로젝트 이전 완료
[3b95062] Android_app 프로젝트 이전 완료
모든 프로젝트 이전 완료
선행한 개별 프로젝트들을 공식 깃으로 이전
How to
상황: 2018-cap1-2/src 내부에 Coway/ 폴더를 생성해 로그를 유지한 상태로 Coway 프로젝트를 이전하고자 함
참고: http://gypark.pe.kr/wiki/Git/%EC%A0%80%EC%9E%A5%EC%86%8C%EB%B3%91%ED%95%A9