griggy
0
Q:

github delete branch remote

$ 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)
14
git branch -r -d remoteBranchName
2
$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>
1
$ git push origin --delete feature/login
16
git branch -d branch_namegit branch -D branch_name
0

New to Communities?

Join the community