squash and merge란?
PR에 존재하는 모든 commit을 하나의 새로운 commit으로 묶어서 merge하는 방식
다음 PR에서 새로운 commit에 대한 내용만 볼 수 있어서 리뷰하는 입장에서 편리함
( main ) git remote add upstream < upstream 주소 >
( main ) git remote -v
( main ) git checkout -b step1
( step1 ) feature 브랜치의 기능 구현
( step1 ) git add / git commit -m "" / git push origin step1
( step1 ) git checkout main
( main ) git branch -D step1
( main ) git fetch upstream myBranch
// 가져온 내용 확인
( main ) git branch -a
( main ) git rebase upstream/myBranch
( main ) git checkout -b step2
( step2 ) feature 브랜치의 기능 구현
추가, 커밋,푸시
( step2 ) git add / git commit -m "" / git push origin step2
반복 !