Story's G Blog AI를 활용해 서비스를 개발하고 인프라를 운영하는 DevOps 엔지니어

[git] remote의 branch 삭제 local 에 반영하기


remote 브랜치가 삭제 되었을 때, 로컬에 삭제된 상태가 반영을 시킬 필요가 있는 경우 다음의 명령어를 사용한다.

 git remote prune origin
 git remote update --prune