0
How will you identify if the branch is already merged into master?

Open 1 Answers 64 Views Technology

 How will you identify if the branch is already merged into master?

1 Answer

0
By executing the below commands, you can get to know the branch merge status:

git branch –merged master: This will list out all the branches that have been renamed into master.
git branch –merged: This will list out all the branches that have been merged into HEAD.
git branch –no-merged: This will list out all the branches that are not yet merged.
By default, this command tells the merge status of local branches only. If you want to know about both local and remote branch merge status, then you can use -a flag. If you want to check only for remote branches, then you can use -r flag.
by (301k points)
...