About 51 results
Open links in new tab
  1. How do I delete a Git branch locally and remotely?

    Jan 5, 2010 · Don't forget to do a git fetch --all --prune on other machines after deleting the remote branch on the server. ||| After deleting the local branch with git branch -d and deleting the remote …

  2. How can I remove a Git branch locally? - Stack Overflow

    There are questions on here about how to delete branches locally and remotely, but I haven't been able to find out how to only delete a branch locally. One answer said to use this: git branch -d …

  3. git - Can I delete all the local branches except the current one ...

    Feb 18, 2015 · I want to delete all branches that get listed in the output of ... $ git branch ... but keeping current branch, in one step. Is that possible? If so, how?

  4. git - How do you remove a branch and all of its history locally and ...

    Jan 9, 2016 · Clean up your local and remote branches Checkout the branch you want to delete and use git filter-branch to reset all commits on the branch to the parent of the branch's first commit: git …

  5. bash - Delete multiple remote branches in git - Stack Overflow

    May 11, 2012 · git branch -r | grep -oE 'workflows/tests.*?$' | xargs -n1 git push origin --delete This command finds branch name starts with workflows/tests and delete them from the origin remote, …

  6. How to delete remote branch (e.g. Github) from command line?

    Oct 4, 2016 · Deleted remote-tracking branch github/buggy (was acc5a58). I'm asking if there's a way to actually remove the test branch from github servers from command-line?

  7. How can I replace a local branch with a remote branch entirely in Git ...

    Assuming that master is the local branch you're replacing, and that "origin/master" is the remote branch you want to reset to: git reset --hard origin/master This updates your local HEAD branch to be the …

  8. How to REALLY delete a git branch (i.e. remove all of its objects ...

    May 21, 2010 · Because the git objects are still there, you can resurrect your branch. But if it's been longer than the default period (90 days), git will automatically run gc, and the objects from your test …

  9. is it possible to completely delete a Git branch?

    Feb 19, 2015 · 5 You should be able to do this trivially through the use of git filter-branch. E.g, assuming that the files to be removed are in a directory called content: git filter-branch --tree-filter 'rm -rf …

  10. How can I delete the current Git branch? - Stack Overflow

    310 I have a branch called Test_Branch. When I try to delete it using the recommend method, I get the following error: Cannot delete branch 'Test_Branch' checked out at ' [directory location]'. I get no …