Linked Questions
180 questions linked to/from How do I delete a Git branch locally and remotely?
4
votes
2
answers
3k
views
How does git LFS track and store binary data more efficiently than git?
I know that git LFS causes git to store a string "pointer" in a text file, and then git LFS downloads that target binary file. In this way, git repos are smaller on the remote git server. ...
8
votes
3
answers
2k
views
Git delete branch without cloning?
Is there a way to delete a branch from a Git repository without doing a clone or any other sort of local copy?
Basically I'm working on a dashboard for a release pipeline and don't want to have to ...
6
votes
2
answers
7k
views
VSTFS 2015: Unable to delete remote branch
I have a setup of VSTFS that is 2015 with git. Somehow we have two branches, Development which is one I want to keep isolated since that is our master. Somehow there is a remote branch development (...
0
votes
2
answers
6k
views
How do I delete a local branch and go back to master?
I created a new branch using git checkout -b new_branch_name.
I haven't run git add or git commit yet.
I want to get rid of this branch completely, including any new files, and switch back to master. ...
0
votes
3
answers
8k
views
How to delete a remote branch locally after deleting the branch in GitHub?
In my GitHub, I have successfully merged my pull request and deleted the branch sec1. Then, I delete my branch locally. However, when I type git branch -a, I still can see the remotes/origin/sec1 ...
6
votes
2
answers
5k
views
Clear Git branch that doesn't exists in VS Code
when I working with gitlab, for some feature I create new branch and work on it and after commit,push,merge I remove branch that was I worked on it from gitlab and then click on Sync command in VS ...
4
votes
2
answers
9k
views
How to delete remote branch on sourcetree?
I want to delete the local and remote feature branch. After deleted the local branch, I deleted the remote branch by right-click the branch under remote/origin/feature. The branch is disappeared on my ...
3
votes
1
answer
4k
views
deleting remote branch does not remove from GitHub
I have a local branch, say hotfix. I put it up on GitHub using
$ git push -u origin hotfix
Then after merging the branch, I want to delete it. So I type
$ git branch -d hotfix
which deletes the ...
9
votes
2
answers
3k
views
Github search PRS by merge date
Is there any way to find PRs in github by it's merge date? Actually the PRs that were merged in the range of the dates.
Didn't find any and it feels weird, so asking the community.
Thanks
4
votes
2
answers
4k
views
VSTS: How to auto-delete git branches
We currently have our dev team working out of VSTS, with git. The number of branches are getting quite large, and rather than manually deleting branches every month, I would like ability to auto-...
4
votes
2
answers
3k
views
Remote rejected to delete git remote branch
I am having an issue with a git remote branch that refuses to be deleted.
As per this answer, I have deleted my local branch with git branch -d qa without any issues, but when I run git push --...
1
vote
5
answers
3k
views
git merging two commits
I am not sure if this is a duplicate and I am not a git expert, so forgive me for what may seem like a stupid question.
I have a file. I edited it, saved and committed those changes.
I forgot I had ...
1
vote
2
answers
3k
views
Force delete Git branch from remote
I was working on some proof-of-concept code and had created a branch for it. Since it took close to 2 weeks, i was also pushing it to the remote on a daily basis.
The POC is now done and I do not ...
5
votes
1
answer
2k
views
windows github tool - use branch unpublish or delete?
I'm new to Github and I've been using the windows github tool which has proved a great help and handled a lot of things like SSH keys, prompts commits, discard a commit, revert commit, and it has a ...
1
vote
2
answers
3k
views
Should I delete the LOCAL remote/origin/master branch after I have merged it with my local master?
I performed a fetch from GitHub, so that I may inspect any changes. This made a remotes/origin/master branch on my local machine that I could checkout, look around in, etc.
I did:
git fetch origin
...