브랜치 리베이스
더 깨끗한 개 정 기록을 위해 git rebase 명령 을 사용하여 브랜치를 통합할 수 있습니다.
non-fast-forward 병합 시나리오가 있는 두 개의 브랜치가 있다고 가정합니다.

리베이스를 수행하면 아래 예와 유사한 브랜치 기록이 생성됩니다.

버그 수정 브랜치를 메인 브랜치로 리베이스하면 버그 수정 브랜치의 커밋이 재생되고 메인 브랜치 끝에 추가됩니다. 그 결과 bugfix 브랜치 기록에 단일 커밋 스트림이 생성됩니다.
커밋이 추가될 때 충돌이 발생하는 경우 Git은 다른 커밋을 리베이스하기 전에 충돌을 수정하라는 메시지를 표시합니다.

리베이스는 메인 위치를 이동하지 않습니다. 어떤 경우든 리베이스 후 버그 수정에서 메인으로 fast-forward 또는 클린 병합을 수행할 수 있습니다.
