Linked Questions
183 questions linked to/from How do I delete a Git branch locally and remotely?
94
votes
6
answers
23k
views
How do I delete a remote branch in Git? [duplicate]
I created a branch notmaster to commit as well as push some changes. When I was finished with that branch, I merged the changes back into master, pushed them out, and then deleted the local notmaster.
...
53
votes
3
answers
75k
views
How to delete remote branch (e.g. Github) from command line? [duplicate]
I have a git repository in my local machine:
I add a new branch called test and add a few commits
Then I checkout to master branch and add commits to it.
So I use git push --all github and continue ...
40
votes
2
answers
11k
views
How do I delete a Git remote branch from the NetBeans IDE? [duplicate]
How do I delete a Git remote branch?
I work with NetBeans, and I tried to delete a remote branch from IDE, but on the delete branch it deleted only locally.
16
votes
1
answer
9k
views
How to delete "origin/origin/master" [duplicate]
Ok, I've created an origin/origin/master branch and I've pushed it. I'm scared to do some remove operations. What can I do? Is it safe to run a remove operation?
This question differs from proposed ...
6
votes
3
answers
10k
views
Delete a github branch [duplicate]
Possible Duplicate:
How do I delete a Git branch both locally and in Github?
First of all, I read how to remove a branch, but for some reason is not working on my project: https://github.com/ralcr/...
8
votes
1
answer
6k
views
Locally deleted branch is not deleted on remote repository [duplicate]
I have removed a branch I have after merging it with the master. However, the locally deleted branch is not deleted on remote repo (on github).
On a suggestion in one answer here, I tried git push ...
2
votes
1
answer
3k
views
How to delete published branch without creating pull request on github console [duplicate]
Is there any way to delete the published branch without creating a pull request and merging it into the default branch on the GitHub console.
One way I know is to create a pull request and then close ...
2
votes
1
answer
4k
views
How to remove remote branch only from my local git? [duplicate]
I know the command git push -d <remote> <branch_name>
I want to delete remote branch only from my local git env. The command above removes remote branch from my local and remote github ...
-1
votes
2
answers
2k
views
Remove refs/remotes entirely [duplicate]
When I do git ls-remote to my remote repository it shows:
HEAD
refs/heads/BranchA
refs/heads/master
refs/remotes/origin/BranchA
refs/remotes/origin/master
How can I delete the last two entries?
5
votes
0
answers
687
views
How to delete a remote duplicate lowercase branch in git [duplicate]
I have pushed two branches with same name but in different case one is in lowercase and other one is in upper case.
I want to delete lowercase branch at remote.
How can I do this?
E.g.:
release-TEST-...
2
votes
3
answers
315
views
Then I removed a branch locally why this branch still works on github [duplicate]
This is a basic newbie question about Git and GitHub. I just want to make sure I'm doing it right. I have a local Git as well as a GitHub repo for my project. I have Master and Develop branches , I ...
-3
votes
1
answer
815
views
How to delete a sub-branch on git? [duplicate]
I created a sub-branch using git checkout -b mysubbranch command. How do I delete this sub-branch?
1
vote
1
answer
638
views
How do I strip branches from a git repository? [duplicate]
For version control, I've been mostly exposed to Mercurial, but want to get better at using Git as well. There's one workflow I'm used to do that doesn't seem to be shown much in the tutorials and ...
1
vote
1
answer
374
views
Git: completely delete unrelated branch both locally and on remote [duplicate]
I accidentally manage to create a completely detached branch in the beginning of the project, and I would like to completely remove it, both from the local and the server repositories.
I am not sure ...
-1
votes
1
answer
185
views
Delete git branch history [duplicate]
I usually create feature branches and then raise PR against release branch .
I have created multiple branches now and raised PRs . I dont want to see them when I give command
git branch . how to ...