In Git, branch merging and deletion are common operations. This article will show you how to merge one branch into another, and delete the one you've already done.
Merge branch:
- git checkout [target_branch]: switch to the target branch.
- git merge [source_branch]: Merge the source branch into the target branch.
Delete branch:
- git branch -d [branch_name]: delete the completed branch.
- git branch -D [branch_name]: Forcefully delete unmerged branches.