How will you know in git if a branch has already been merged into master?
Answer / 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 |
What is another option for merging in git?
Name a few git commands?
What is a commit message?
Explain git stash, pop?
What is the difference between ‘git remote’ and ‘git clone’?
What is the function of ‘git checkout’ in git?
Name a few Git repository hosting services
Why git and not svn?
What does a commit object contain?
How to create tag?
What is git Is-tree?
What is the difference between GIT and SVN?