- Git remove remote branch
# git push <remote_name> --delete <branch_name>
git push origin --delete issue_001
- Git remove local branch
git branch -d issue_01
or if error: The branch 'issue_fix_typo' is not fully merged
git branch -D issue_001
More info can be found when type cmd git branch --help
in git bash.
git branch (-d | -D) [-r] <branchname>…
-d
--delete
Delete a branch. The branch must be fully merged in its upstream branch, or in HEAD if no upstream was set with --track or --set-upstream-to.-D
Shortcut for --delete --force.