How will you know in GIT if a branch has been already merged into master?



How will you know in GIT if a branch has been already merged into master?..

Answer / Bhupendra Singh

You can check if a branch has been merged into the master branch by running `git log --merges <branch-name>` or by checking the 'Master' branch's history and looking for the branch you are interested in. If you see a merge commit that includes your branch, it means that your branch has been merged into the master.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

How do you configure a git repository to run code sanity checking tools right before making commits, and preventing them if the test fails?

1 Answers  


What is a git commit and what does the commit object contain?

1 Answers  


What is the command you can use to write a commit message?

1 Answers  


What is the difference between ‘git remote’ and ‘git clone’?

1 Answers  


What does a commit object contain?

1 Answers  


What is git fork?

1 Answers  


What does commit object contain?

1 Answers  


How to create tag?

1 Answers  


Name a few git commands?

1 Answers  


What is the function of ‘git diff ’ in git?

1 Answers  


What is the difference between git vs svn

1 Answers  


What is GIT stash?

1 Answers  


Categories