0 votes
in Git by
How will you identify if the branch is already merged into master?

1 Answer

0 votes
by
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.

Related questions

0 votes
asked Apr 18, 2020 by SakshiSharma
+1 vote
asked Feb 19, 2021 in Linux by SakshiSharma
...