How will you know in git if a branch has already been merged into master?
Answer Posted / Rajnish Kumar Shriwastawa
You can check the merge history of the branch using the command `git log --oneline --merges <branch-name>`. If there is a merge commit that points to the 'master' branch, it means the branch has already been merged into master.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers