Export the list of commits which are there in one branch but not there in another branch with commit owner bitbucket

huangapple go评论48阅读模式
英文:

Export the list of commits which are there in one branch but not there in another branch with commit owner bitbucket

问题

我们需要导出在一个分支(branch1)中存在但在另一个分支(branch2)中不存在的提交列表,其中包含在Bitbucket中的提交者ID。所以,请告诉我Bitbucket中是否有这样的选项。

英文:
  • we needs to Export the list of commits which are there in one branch(branch1) but not there in another branch(branch2) with committer id in bitbucket.
    So Please let me know if any such kind of option available in Bitbucket *

答案1

得分: 1

以下是翻译好的部分:

这是命令:

git log --pretty=format:"%h %ae %s" branch1 ^branch2
  • 普通分支名称(branch1)表示要包括哪些分支的提交。
  • 带有^前缀的分支名称(^branch2)表示要排除哪些分支的提交。请注意,某些shell可能需要加引号。
  • %h是短提交哈希值。
  • %ae是作者的电子邮件地址(%an将提供作者姓名)。
  • %s是提交消息(主题)。
  • 打印格式的详细信息在git log --help中有文档说明(实际上,所有这些内容都在那里有文档说明)。
英文:

Here's the recipe:

git log --pretty=format:"%h %ae %s" branch1 ^branch2
  • Plain branch names (branch1) say which branches' commits to include.
  • Branch names prefixed with ^ (^branch2) say which branches' commits to exclude. Beware some shells might need that quoted.
  • %h is the short commit hash.
  • %ae is the author's email address. (%an would give the name.)
  • %s is the commit message (subject).
  • The print format is documented in git log --help (actually, all this stuff is documented there).

huangapple
  • 本文由 发表于 2023年6月8日 22:58:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76433167.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定