Git배우기

LearnGitBranching]1 - 4. Rebase하기!

Pican 2019. 8. 9. 01:28

Git rebase란?

-rebase란 커밋을 다른 커밋 바로 아래에 있게 해줍니다!

만약 바로 아래있는 커밋을 rebase하면 현재 커밋이 아래 커밋으로 이동합니다!

 

시작하죠!

 

git branch bugFix - bugFix 브랜치 생성!

git checkout bugFix - master에서 bugFix브랜치로 이동

git commit - 제출!

git checkout master - master로 이동

git commit -제출!

git checkout bugFix - bugFix로 이동

git rebase master - master로 rebase!