Fork 해온 Repository에는 잔디가 심어지지 않는다. 잔디가 심어지는 기준은 다음 아래와 같다.
- Github 계정과 Commit 이메일 계정이 동일
- commit이 Fork한 repository가 아닌, 나만의 repository에서 이루어져야 한다.
Fork 해온 Repository의 commit 기록을 지우지 않고, 잔디를 심는 방법은 다음 아래와 같다.
$ git clone --bare https://github.com/exampleuser/old-repository.git
아래 명령어를 이용하여 새로운 Repository로 이동하여, 새로운 Repository 주소를 복사한 뒤 git push mirror을 한다.
$ cd old-repository.git
$ git push --mirror https://github.com/exampleuser/new-repository.git
$ cd ..
$ rm -rf old-repository.git
Fork 해온 Repository 잔디 심는 방법 (https://soranhan.tistory.com/11)