본문 바로가기 메뉴 바로가기

just_HS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

just_HS

검색하기 폼
  • 분류 전체보기 (500)
    • python (6)
    • golang (108)
    • embedded (25)
    • google cloud platform (3)
    • google colaboratory (4)
    • deep learning (3)
    • blockchain (9)
    • git (15)
    • etc (16)
    • life-health (25)
    • javascript30 (19)
    • development (76)
    • book-movie (126)
    • til (40)
    • generative-ai (8)
    • book: how minds change (2)
    • develop-and-AI (15)
  • 방명록

delete (1)
Git branch 일괄 삭제 방법

개요 열심히 업무를 하다보니 Pull Request를 보내고 미처 지우지 않은 branch들이 많다. 그런데 이걸 하나씩 git branch -D {branch_name} 으로 지우려니 번거롭다. TL;DR 링크: https://medium.com/@rajsek/deleting-multiple-branches-in-git-e07be9f5073c $ git branch | grep "" | xargs git branch -D 실습으로 하나씩 동작을 이해해보자. 준비 작업 쓸데없는 브랜치를 마구 만들었다. $ git branch branch들을 출력한다. $ git branch | grep feat 출력한 branch 들 중에서 feat가 들어가는 항목들만 추려낸다 $ git branch | grep fea..

git 2022. 12. 22. 10:16
이전 1 다음
이전 다음
반응형
잡학툰 뱃지
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
  • 클린 애자일
  • websocket
  • Echo
  • middleware
  • 잡학툰
  • intellij
  • notion
  • 체호프
  • postgres
  • backend
  • solid
  • strange
  • clean agile
  • ChatGPT
  • 오블완
  • 티스토리챌린지
  • golang
  • github
  • 영화
  • MCP
  • 독서후기
  • 독서
  • bun
  • API
  • gocore
  • agile
  • 인텔리제이
  • OpenAI
  • go
  • Gin
more
«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바