5

多数のブランチを持つリポジトリがあります。すべてのブランチは、同等のリモート ブランチで最新です。

たとえば、次の 2 つのブランチの git status および git log からの出力を参照してください。

枝カマキリ_0074

mchaleg@ELT-L-0018 ~/Documents/BitBucket/electroroute_repositories/gudrun (mantis_0074)
$ git status
On branch mantis_0074
nothing to commit, working directory clean

mchaleg@ELT-L-0018 ~/Documents/BitBucket/electroroute_repositories/gudrun (mantis_0074)
$ git log --oneline --decorate
a67b6f7 (HEAD, origin/mantis_0074, mantis_0074) M-0074: Update expected results from sample bids.
afda69c M-0074: Rename long and short term intra-day BritNed auction files to use the correct name format so that they will be processed correctly (i.e. not handled as
bcc41 M-0074: Add unprocessed files which can be used for testing amp_file_transfer.ps1 script.

枝カマキリ_0151

mchaleg@ELT-L-0018 ~/Documents/BitBucket/electroroute_repositories/gudrun (mantis_0151)
$ git status
On branch mantis_0151
Your branch is up-to-date with 'origin/mantis_0151'.

nothing to commit, working directory clean

mchaleg@ELT-L-0018 ~/Documents/BitBucket/electroroute_repositories/gudrun (mantis_0151)
$ git log --oneline --decorate
f0487e2 (HEAD, origin/mantis_0151, mantis_0151) mantis_0151 Finalised version of trigger with updated varaible names etc
24a0ae0 mantis_0151 get the tb_apx_fact_private_trades table trigger into line with what is in production as it currently isn't. Also add the create statement as well

git ログ出力から、両方のブランチがリモート ブランチで最新であることがわかります。

両方のブランチが最新であるYour branch is up-to-date with 'origin/branch'のに、メッセージがブランチ mantis_0151 の git ステータス メッセージにのみ表示されるのはなぜですか?

4

1 に答える 1

6

ブランチがリモート ブランチを追跡するように設定されている場合にのみ、Git はこのメッセージを表示します。最初のブランチはそうではないようです。

于 2014-12-08T23:08:03.913 に答える