You work at MDFT Pro, which uses Git for source control. You are a developer working on the StudentPortal application. You have been working on a feature branch named ‘feature’ for several weeks. During this time, the main branch has also been updated by other developers.
Before merging your feature branch back to main, you need to identify which commits exist in your feature branch but do not exist in the main branch. This will help you understand exactly what changes you’ll be introducing to the main branch.
Which Git command should you run to list only the commits that exist in the feature branch but not in the main branch?
Choose the correct answer from the options below.
Explanations for each answer: