Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to delete branch git cli

# 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: #delete #branch #git #cli
ADD COMMENT
Topic
Name
8+9 =