After merging a branch we often do not need that branch anymore, if that is the case we can delete the branch to save space and reduce git process time. To delete a branch on local:
git branch -d new-fix
The new-fix branch will be deleted if there is no uncommitted changes. If we have uncommitted changes and we don't need those too, then we should force git to delete them too, using -d parameter will generate error, to force delete we use -D:
git branch -D new-fix
Note: we cannot delete the current branch, we should checkout to other branches to do so. To delete a branch from remote we should use push command:
git push --delete origin new-fix
This command will delete the branch from remote.