gpt4 book ai didi

git - 运行 git status 时,消息 "your branch is up-to-date with ' origin/branch' 仅出现几次

转载 作者:太空狗 更新时间:2023-10-29 13:20:52 26 4
gpt4 key购买 nike

我有一个包含多个分支的存储库。所有分支都与等效的远程分支保持同步。

例如,查看以下两个分支的 git status 和 git log 的输出:

分支 mantis_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.

分支 mantis_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 状态消息中?

最佳答案

如果您的分支设置为跟踪远程分支,Git 只会向您显示此消息。您的第一个分支似乎不是。

关于git - 运行 git status 时,消息 "your branch is up-to-date with ' origin/branch' 仅出现几次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27368672/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com