0 votes
in Git by
How can I know if a branch is already merged into master?

1 Answer

0 votes
by

The answer to this type of Git interview questions is generally straightforward. The following commands can help in finding whether a branch has been merged in the master or not. 

“git branch –merged” helps in listing out branches merged in the current branch.

“git branch –no -merged” helps in listing out branches not merged in the existing branch.

...