Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git delete local branch

# Delete remote branch
git push origin -d remote_branch_name

# Delete local branch
git branch -d local_branch_name

# Force delete if getting merge error
git branch -D local_branch_name
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #git #delete #local #branch
ADD COMMENT
Topic
Name
5+2 =