You're on branch_a
Compare difference branch_b && master
Command
git cherry -v master branch_b
Example
+ 27fdb38c8b76c01786cb6d195b58f9b2dd061c77 branch_b_new_clare: to /Models/History
+ 15931eddf33b745b5f77cccbd607cd6cc761645e branch_b: update
+ 6d00c6f3ca21af2ae11e0cc8ec46175882b57641 branch_b: update config
+ c87fb13e1de845adcbf28f8e07a78015fd02e46b branch_b- add ConnectionTrait
+ e14842f586b1f7dbee612d690be9959e5b4ecea7 branch_badd GetConnection
+ 2a9c10f303948fbc50a93629681d3954cfd7e483 branch_b: update
+ cc23821064cb462fc871623356989cc5338f08ad branch_b update Controller
+ d455e9fd4804697eeaf2073bee4afaaab2bb93b7 branch_b update controller
You're on branch_b
Compare current branch with another branch
Command
git cherry -v master
Example
+ 27fdb38c8b76c01786cb6d195b58f9b2dd061c77 branch_b_new_clare: to /Models/History
+ 15931eddf33b745b5f77cccbd607cd6cc761645e branch_b: update
+ 6d00c6f3ca21af2ae11e0cc8ec46175882b57641 branch_b: update config
+ c87fb13e1de845adcbf28f8e07a78015fd02e46b branch_b- add ConnectionTrait
+ e14842f586b1f7dbee612d690be9959e5b4ecea7 branch_badd GetConnection
+ 2a9c10f303948fbc50a93629681d3954cfd7e483 branch_b: update
+ cc23821064cb462fc871623356989cc5338f08ad branch_b update Controller
+ d455e9fd4804697eeaf2073bee4afaaab2bb93b7 branch_b update controller
Show as commit
You're staying on branch_b
Example
$ git cherry -v --abbrev staging
+ 27fdb38c8 branch_b_message_db: to /Models/History
+ 15931eddf branch_b: update
+ 6d00c6f3c branch_b: update config
+ c87fb13e1 branch_b- add Trait
Update