본문 바로가기

공부/개발

[Git] 브런치 삭제

반응형

브런치 삭제시 다음과 같은 에러가 나올 수 있다.

warning: not deleting branch '[브런치이름]' that is not yet merged to
         'refs/remotes/origin/[브런치이름]', even though it is merged to HEAD.
error: The branch '[브런치이름]' is not fully merged.
If you are sure you want to delete it, run 'git branch -D [브런치이름]'.

이는 브랜치에서 수정한 내용을 merge 하지 않아서 나오는 에러이다. 딱히 수정 내용이 중요하지 않다면 강제로 브랜치를 삭제 하면 된다.

// 로컬
git branch -D [브런치이름]
// 원격
git push origin -d [브런치이름]

 

git 에서 branch를 전체 볼 때에는 이렇게!

git branch --all

 

반응형