Answers for "how to delete local master branch in git"

21

git remove 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)
Posted by: Guest on April-15-2020
1

how to delete local master branch in git

git delete
Posted by: Guest on August-13-2020
2

delete local and remote branch github

$ git push <remote_name> :<branch_name>
Posted by: Guest on May-26-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language