# git-delete-merged-branches - 머지된 브랜치들 편하게 지우기

> Clean Markdown view of GeekNews topic #7929. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=7929](https://news.hada.io/topic?id=7929)
- GeekNews Markdown: [https://news.hada.io/topic/7929.md](https://news.hada.io/topic/7929.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-12-01T09:45:29+09:00
- Updated: 2022-12-01T09:45:29+09:00
- Original source: [github.com/hartwork](https://github.com/hartwork/git-delete-merged-branches)
- Points: 8
- Comments: 0

## Topic Body

- Repo를 깔끔하게 유지하기 위한 도구   
- 로컬 & 리모트 브랜치 삭제 지원   
- 다양한 형태의 머지 지원 (리베이스 머지, 스쿼시 머지, 싱글/범위 체리픽,..)  
- 여러개의 릴리즈 브랜치가 있는 워크플로우 지원  
→ 'master/dev/staging 모두에 머지된 브랜치만 지우기'  
- 빠른 인터랙티브 설정   
- GitHub, GitLab, Gitea 등과 모두 동작  
- 매우 안전하게 동작함   
  - 확인 또는 --yes 없이는 아무것도 지우지 않음   
  - 확인할 때 기본값은 "no"임. 엔터 친다고 삭제하지 않음   
  - git push는 --force-with-lease 와 함께 실행되어, 서버와 로컬이 브랜치가 다르다면 삭제하지 않음   
  - os.system 이나 쉘 코드를 사용하지 않음   
  - --verbose 옵션으로 실행되는 모든 git 명령 확인 가능

## Comments



_No public comments on this page._
