Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Git delete single branch

// -- Clear all branches except Master Branch --
git branch -D $(git branch | grep -v 'master')
// This will clear all your branches you have on local that you have 
// not pushed to your repository. eg: IF, you created a branch that was, 
// not pushed it will remain along with amster. 
// But the others will be cleaned.

// -- Delete a single branch
git branch -D branch-name
Comment

Git - delete specific branch

$ git branch -D <branch> 
Comment

PREVIOUS NEXT
Code Example
Shell :: how to rename a file in terminal 
Shell :: edit text file bash 
Shell :: reaect native reactotron 
Shell :: open command prompt windows 10 
Shell :: apt get update upgrade linux 
Shell :: redis reload config 
Shell :: bash get domain from url 
Shell :: How to change default install location for pip 
Shell :: removing a git folder 
Shell :: yarn not working after install 
Shell :: git add 
Shell :: push an existing repository from the command line on github 
Shell :: mac terminal curl 
Shell :: chocolatey local installed 
Shell :: create file in linux 
Shell :: powershell clear command 
Shell :: git abandon untracked files 
Shell :: npx gitignore generator 
Shell :: git fetch upstream 
Shell :: docker image prune 
Shell :: cisco anyconnect download for ubuntu 18.04 
Shell :: linux sort text file alphabetically 
Shell :: gunicorn 
Shell :: [error] The installed version of the /Database Logging/ module is too old to update 
Shell :: rials db down 
Shell :: Could not extract RVM sources 
Shell :: vim cut paste 
Shell :: ubuntu install dbeaver 
Shell :: sudo apt update not working 
Shell :: C linux compiler online 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =