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.