git remote prune origin

부가 설명
remote, local 모두 브랜치 삭제했음에도 로컬에 잔존할 때 정리하는 방법
Tags
branch
remote
delete

remote에서 지운 브랜치가 남아있는 상태

notion image
# 모든 브랜치 다 조회 $ git branch -a # git remote prune은 리모트 브랜치의 더 이상 유효하지 않은 참조를 깨끗이 지우는 명령어 $ git remote prune origin $ git remote update --prune
 

명령어 수행 결과

notion image