원격에서 분기 삭제
// delete branch locally
git branch -d localBranchName
//delete local branch that is unmerged
git branch -D localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
힘내 원격 제거
$ git remote -v
# View current remotes
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
> destination https://github.com/FORKER/REPOSITORY.git (fetch)
> destination https://github.com/FORKER/REPOSITORY.git (push)
$ git remote rm destination
# Remove remote
$ git remote -v
# Verify it's gone
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
git origin branch 를 삭제하는 방법
$ git push origin --delete feature/login
분기 자식 삭제
// delete branch locally
git branch -D localBranchName
// delete branch remotely
git push
힘내 원격 분기 삭제
$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>
힘내 원격 분기 삭제
#delete remote branch
git push -d <remote_name> <branch_name>
#example: git push -d origin new_feature
#delete local branch
git branch -d <branch_name>
#example: git branch -d new_feature