Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete a local and remote git branch

# Deleting a local branch doesn't affect a remote branch. To delete a local Git branch, run:
git branch -d [branch_name]
# Use the following syntax to delete a remote Git branch:
git push [remote_project] --delete [branch_name]
Source by phoenixnap.com #
 
PREVIOUS NEXT
Tagged: #delete #local #remote #git #branch
ADD COMMENT
Topic
Name
4+2 =