1. 브랜치 develope 의 브랜치 feature/posts 에서의 작업이 끝남

2. 브랜치 develope 으로 이동

3. develope 에서 merge 수행

git merge --squash {병합할 브랜치}
git commit -m "squash & merge"
  • merge 취소 방법
    1. git reflog or git log 를 입력해서 hash 확인 (git reflog 가 확인이 편리)
    2.  -- hard 이용 :  커밋되지 않은 모든 내용이 
      1. git reset --hard {hash}
      2. 바로 이전의 hash를 알지 못한 다면 아래 방법도 가능
        • git reset --hard HEAD~1
    3.  -- merge 이용
      1. git reset --merge  {hash}
      2. git reset --merge  HEAD~1

+ Recent posts