I an newer about git. after I merge my branch from another branch, I found something wrong. Now my status is I have commit these changes from merging, but not push into the
You can find the answer using git help branch. (Because it is regarding the git branch command.)
There you find:
-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.
-D
Delete a branch irrespective of its merged status.
Usually you do git branch -d. - If git complains, you should think again and if you are sure you do not need any commits from that branch anymore you can do git branch -D to delete it anyway.
The -D is a force-delete and the -d will provide a warning before deleting if the branch has not been merged into its upstream branch