새로 프로젝트를 시작할때, 지난 프로젝트의 특정 버전부터 시작하고 싶다면 아래 처럼 하면 된다.
git clone 깃주소
cd 프로젝트
git reset --hard 특정버전해시
실제예
b1ix@DESKTOP-BBB MINGW64 /git
$ git clone http://b1ix@b1ix.net/old_project tmp_project1
Cloning into 'tmp_project1'...
remote: Counting objects: 5084, done
remote: Finding sources: 100% (5084/5084)
remote: Getting sizes: 100% (3544/3544)
remote: Total 5084 (delta 1496), reused 5084 (delta 1496)
Receiving objects: 100% (5084/5084), 12.44 MiB | 6.45 MiB/s, done.
Resolving deltas: 100% (1496/1496), done.
b1ix@DESKTOP-BBB MINGW64 /git
$ cd tmp_project1/
b1ix@DESKTOP-BBB MINGW64 /git/tmp_project1 (master)
$ git reset --hard 15a1b11f8f7632f1d8a2764783f918c32e9a426e
HEAD is now at 15a1b11 * 프로젝트 기본 완료
이제 tmp_project1에는 old_project의 특정버전이 담겨 있게 된다.
나는 보통 여기서 브런치를 따기보단, 새로운 git을 만들고 해당 파일을 그대로 복사하여 새로 시작하는 경우가 많다.