繁体   English   中英

我怎么知道哪些补丁不包含与上游git存储库在同一分支中提交的git存储库?

[英]How may I know what patches are exclusive of a git repository that commits in the same branch as the upstream git repository?

我知道一个git存储库,其中的作者在与上游存储库相同的分支中提交更改,并且有时与上游合并。

我怎么知道哪些补丁不包含与上游git存储库在同一分支中提交的git存储库?

您可以尝试git cherry

       git-cherry - Find commits not merged upstream

SYNOPSIS
       git cherry [-v] [<upstream> [<head> [<limit>]]]

DESCRIPTION
       The changeset (or "diff") of each commit between the fork-point and
       <head> is compared against each commit between the fork-point and
       <upstream>. The commits are compared with their patch id, obtained from
       the git patch-id program.

       Every commit that doesn't exist in the <upstream> branch has its id
       (sha1) reported, prefixed by a symbol. The ones that have equivalent
       change already in the <upstream> branch are prefixed with a minus (-)
       sign, and those that only exist in the <head> branch are prefixed with
       a plus (+) symbol:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM