코딩, 개발에 대한 기록 저장소

git remote branch 삭제 및 상태 업데이트


### remote branch 삭제
```
# git push <원격 저장소 이름> -d <원격 브랜치 이름>
$ git push origin -d test_branch
```

### remote branch 상태 업데이트
- A 에서 remote branch 를 삭제했지만 B 에서는 remote branch 가 계속 있는 것처럼 보이는 경우가 있음
- 이럴땐 아래 명령으로 remote branch 정보를 리셋 혹은 갱신 해야 함

```
# git remote prune <원격 저장소 이름>
$ git remote prune origin
```

### local branch 삭제
```
# git branch -D <로컬 브랜치 이름>
$ git branch -D test_branch
```

### 요점
- remote branch 삭제는 git push
- local branch 삭제는 -D