git cherry command to compare two different branches

git cherry Command

 

1. two parameters

 

git cherry -v origin/master asa

 

Compare the difference local and remote master asa branch of

 

git cherry -v master asa

 

Compare the difference between the local branch and local master branch asa

 

git cherry -v origin/master origin/asa

 

Asa difference is relatively remote branches and remote master of

 

git cherry -v master origin/asa

 

Asa difference is relatively remote branch and the local master

 

注意:所列出的结果是asa分支(后一个参数)尚未合并到master(前一个参数)上的提交列表

 

git cherry Find Local submit the list has not been pushed to the remote submitted

2. without parameters

git cherry The default comparison HEAD local branch and remote branches, namely current branch and the current branch tracking a remote branch

If differences exist, the comparison results are as follows

+ 717cbc128c0e640f4f93ca8ad1118bd7f79ac728
+ f92324d7c3f3a47afbbb4c3877b323320d2871d4
+ edfaaede19bd2929b10505291266c772e9d1c934
+ fa3100796735f970f6fb94d828a3e463fe5c6731
+ be947b5a36a2102cea16c816b3b8fc8a2134ca63
+ 31bb0cf8f7131be927cb023d31ee16dcd0639060
+ c94061ea1ac16ebfe8e6388cb351a4c9329965d1

git cherry -v You can show the information submitted comments

+ 717cbc128c0e640f4f93ca8ad1118bd7f79ac728 由于适应前端解析问题,返回一个string类型的userId
+ f92324d7c3f3a47afbbb4c3877b323320d2871d4 返回签到记录
+ edfaaede19bd2929b10505291266c772e9d1c934 读取plist配置获取默认背景逻辑编码
+ fa3100796735f970f6fb94d828a3e463fe5c6731 读取plist配置获取默认背景逻辑编码
+ be947b5a36a2102cea16c816b3b8fc8a2134ca63 harvest之后返回decoration;重命名;
+ 31bb0cf8f7131be927cb023d31ee16dcd0639060 读取plist配置获取默认背景逻辑编码
+ c94061ea1ac16ebfe8e6388cb351a4c9329965d1 等级自动判断

3. a parameter

git cherry -v origin/master You can compare the difference between local and remote master branch HEAD branch

+ 1f05a74c9a92e0faf5da96b17a7a15aa6c6e26e7 修复update的SQL错误
+ ad78159f828a148c3d1581b44e2b32cb45464031 修复SQL错误
+ 9d8a7471fb9408d7738b3a43f4f56a159619bfb0 增加逻辑:每次修改周期,保存一次未来提醒记录
+ d618e16338d354830cb2ff2a0208d1502e705941 修复设置以前的日期时候可能导致的数组越界BUG
+ 21d980972e6bcd73270d31b08852a6f62e72465c 预置推送消息增加推送人ID
+ 741c64ef5f396dee29972e8f0684892b373f6aa7 修复SQL错误

git cherry -v origin/master

You may compare the difference between the local branch and a remote master branch HEAD,
equivalent togit cherry -v origin/master HEAD

git cherry -v master

You may compare the difference between the local branch and a local master branch HEAD,
equivalent togit cherry -v master HEAD

 

Guess you like

Origin www.cnblogs.com/igoodful/p/11528757.html