分支和当前分支之间的git差异

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了分支和当前分支之间的git差异相关的知识,希望对你有一定的参考价值。

This will display the commit difference between the origin/master branch and the current working branch
  1. branch=$( git branch 2>/dev/null|grep -e ^* | tr -d * )
  2. git log --oneline remotes/origin/master "^${branch}"

以上是关于分支和当前分支之间的git差异的主要内容,如果未能解决你的问题,请参考以下文章