git merge-base

名字: git-merge-base

找到一个merge中尽可能好的公共祖先。

语法:

'git merge-base' [-a|--all] <commit> <commit>...
'git merge-base' [-a|--all] --octopus <commit>...
'git merge-base' --is-ancestor <commit> <commit>
'git merge-base' --independent <commit>...
'git merge-base' --fork-point <ref> [<commit>]

描述:

git merge finds best common ancestors(s) between two commits to use in a three-way merge.

git merge-base找到两个commit之间最好的公共祖先。这个公共祖先会被用来做三方merge。

为什么本地一个变更,如果合导master是一个变更,合到test是220个,合到dev是770个 我们通常使用git log来查看提交历史。这里的问题可能是由于分支之间的差异导致的。同一个变更(可能是一个commit)合并到master是一个变更,但是合并到test和dev时,却显示有220个和770个变更,这可能是因为: 该变更本身包含了多个文件修改,但master分支已经包含了部分修改,而test和dev分支缺少一些修改,导致合并时计算的文件变更数量不同。 也可能是合并时基于的分支基点不同,导致合并时引入了多个提交。 但是,根据你的描述,同一个变更(可能是一个提交)合并到不同分支,显示的变更数量不同,这通常是因为不同分支的基线不同,所以合并时引入的更改数量也不同。 我们可以通过以下步骤来理解: 确认这个变更(比如一个commit)的SHA值。 分别查看这个commit与master、test、dev分支的最近共同祖先(merge base)之间的差异。 具体操作: 假设这个变更的commit是C,那么: 合并到master时,计算的是C与master的merge base之间的差异,可能只有这个commit的更改。 合并到test时,计算的是C与test的merge base之间的差异,可能除了C之外,还有C之前的一些commit没有被test分支包含,所以这些commit的更改也会被计算在内。 同理,合并到dev时,计算的是C与dev的merge base之间的差异,可能漏掉了更多的commit,所以计算出来的变更数量就更多。 因此,同一个commit合并到不同分支,显示的变更数量不同,是因为不同分支与这个commit的基线不同。 我们可以用以下命令来查看具体的差异: 假设当前我们在C这个commit上,我们想查看与目标分支(比如test)的merge base之间的差异: bash git diff --stat $(git merge-base <目标分支> C) C 例如,对于test分支: bash git diff --stat $(git merge-base test C) C 对于dev分支: bash git diff --stat $(git merge-base dev C) C 这样就能看到分别有多少文件变更,多少行插入和删除。 另外,也有可能是因为合并时使用了不同的合并策略,或者分支历史结构不同(例如,test分支可能已经包含了这个变更之前的一些修改,而dev分支没有),导致合并时引入的变更集大小不同。 总结:这是因为不同分支的基线不同,所以同一个变更集(commit)相对于不同基线的差异就不同。 这是一个非常典型且重要的问题!您看到的这种现象揭示了您团队 Git 分支策略和开发流程中的关键信息。让我来详细解释为什么会出现这种情况。 核心原因分析 根本原因:分支之间的"分叉点"不同 具体解释 master 分支(1个变更) 这是生产环境的分支,最稳定 您的本地变更基于最新的 master(或很接近) Git 计算差异时,只看到您这 1 个提交的更改 test 分支(220个变更) test 分支落后于您的开发基线 有 219 个提交在 test 分支中但不在您的分支中 您的 1 个变更 + test 缺失的 219 个变更 = 220 个变更 dev 分支(770个变更) dev 分支更加落后 有 769 个提交在 dev 分支中但不在您的分支中 您的 1 个变更 + dev 缺失的 769 个变更 = 770 个变更 在 IDEA 中验证这个理论 方法一:查看分支图谱 点击 IDEA 左上角分支名 选择 Show Git Log 在 Log 界面,同时选择多个分支进行对比 观察分支分叉的时间点 方法二:检查合并基(Merge Base) bash # 在 Terminal 中执行(虽然您说不用命令,但这是最直接的验证方式) git merge-base HEAD origin/test git merge-base HEAD origin/dev git merge-base HEAD origin/master 每个命令返回的 commit hash 会不同,证明分叉点确实不同。 这反映的流程问题 问题 1:分支同步策略 test 和 dev 分支没有定期从 master 同步 或者您的特性分支是从很旧的 master 检出的 问题 2:开发基线过旧 您可能是在一个很旧的提交上开始开发的: 问题 3:合并策略 团队可能在使用某种特定的分支模型,但同步机制不完善。 解决方
10-11
2025-09-12 15:40:27.160 [info] [main] 日志级别: Info 2025-09-12 15:40:27.160 [info] [main] 正在验证在以下位置找到的 git: "git" 2025-09-12 15:40:27.160 [info] [main] 使用来自 "git" 的 git "2.34.1" 2025-09-12 15:40:27.160 [info] [Model][doInitialScan] Initial repository scan started 2025-09-12 15:40:27.160 [info] > git rev-parse --show-toplevel [1513ms] 2025-09-12 15:40:27.617 [info] > git rev-parse --git-dir --git-common-dir [452ms] 2025-09-12 15:40:27.625 [info] [Model][openRepository] Opened repository (path): /mnt/d/cy.n/project/7.4/ticket-backend 2025-09-12 15:40:27.625 [info] [Model][openRepository] Opened repository (real path): /mnt/d/cy.n/project/7.4/ticket-backend 2025-09-12 15:40:28.041 [info] > git fetch [417ms] 2025-09-12 15:40:28.042 [info] Missing or invalid credentials. Skip silent fetch commands remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://10.0.196.27/fault-sight/ticket-backend.git/' 2025-09-12 15:40:28.042 [info] > git rev-parse --show-toplevel [242ms] 2025-09-12 15:40:28.042 [info] > git config --get commit.template [245ms] 2025-09-12 15:40:28.074 [info] > git config --get commit.template [22ms] 2025-09-12 15:40:28.078 [info] > git rev-parse --show-toplevel [13ms] 2025-09-12 15:40:28.392 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [329ms] 2025-09-12 15:40:28.392 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [346ms] 2025-09-12 15:40:28.392 [info] > git rev-parse --show-toplevel [309ms] 2025-09-12 15:40:28.448 [info] > git check-ignore -v -z --stdin [68ms] 2025-09-12 15:40:28.449 [info] > git rev-parse --show-toplevel [50ms] 2025-09-12 15:40:28.503 [info] > git config --get commit.template [38ms] 2025-09-12 15:40:28.503 [info] > git rev-parse --show-toplevel [45ms] 2025-09-12 15:40:28.542 [info] > git rev-parse --show-toplevel [20ms] 2025-09-12 15:40:28.567 [info] > git rev-parse --show-toplevel [20ms] 2025-09-12 15:40:28.586 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [133ms] 2025-09-12 15:40:28.591 [info] > git rev-parse --show-toplevel [19ms] 2025-09-12 15:40:28.598 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [137ms] 2025-09-12 15:40:28.605 [info] > git config --get --local branch.develop.vscode-merge-base [16ms] 2025-09-12 15:40:28.612 [info] > git rev-parse --show-toplevel [16ms] 2025-09-12 15:40:28.620 [info] > git config --get --local branch.develop.vscode-merge-base [12ms] 2025-09-12 15:40:28.636 [info] > git rev-parse --show-toplevel [20ms] 2025-09-12 15:40:28.659 [info] > git rev-parse --show-toplevel [18ms] 2025-09-12 15:40:28.681 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [154ms] 2025-09-12 15:40:28.681 [info] > git rev-parse --show-toplevel [17ms] 2025-09-12 15:40:28.702 [info] > git rev-parse --show-toplevel [16ms] 2025-09-12 15:40:28.703 [info] [Model][doInitialScan] Initial repository scan completed - repositories (1), closed repositories (0), parent repositories (0), unsafe repositories (0) 2025-09-12 15:40:28.731 [info] > git ls-files --stage -- src/models/ticket_models.py [21ms] 2025-09-12 15:40:28.786 [info] > git show --textconv :src/models/ticket_models.py [79ms] 2025-09-12 15:40:28.792 [info] > git cat-file -s 1ce5b6539b34a987902180992eb2fe2f98ea7d57 [58ms] 2025-09-12 15:40:28.794 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/origin/develop refs/remotes/origin/develop [183ms] 2025-09-12 15:40:28.804 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/origin/develop refs/remotes/origin/develop [181ms] 2025-09-12 15:40:28.869 [info] > git merge-base refs/heads/develop refs/remotes/origin/develop [70ms] 2025-09-12 15:40:28.903 [info] > git merge-base refs/heads/develop refs/remotes/origin/develop [95ms] 2025-09-12 15:40:29.032 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [338ms] 2025-09-12 15:40:29.032 [info] > git diff --name-status -z --diff-filter=ADMR 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8...refs/remotes/origin/develop [160ms] 2025-09-12 15:40:29.038 [info] > git diff --name-status -z --diff-filter=ADMR 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8...refs/remotes/origin/develop [132ms] 2025-09-12 15:40:29.122 [info] > git status -z -uall [431ms] 2025-09-12 15:40:30.089 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/models/ticket_models.py [1177ms] 2025-09-12 15:40:30.501 [info] > git check-ignore -v -z --stdin [52ms] 2025-09-12 15:40:33.170 [info] > git ls-files --stage -- src/services/ticket_quantitative_service.py [15ms] 2025-09-12 15:40:33.213 [info] > git show --textconv :src/services/ticket_quantitative_service.py [62ms] 2025-09-12 15:40:33.216 [info] > git cat-file -s 1c32f903777c11493790c82fa4e5dd5fc58a50b9 [43ms] 2025-09-12 15:40:34.262 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/services/ticket_quantitative_service.py [991ms] 2025-09-12 15:40:57.389 [info] > git ls-tree -l HEAD -- src/models/project_models.py [50ms] 2025-09-12 15:40:57.419 [info] > git show --textconv HEAD:src/models/project_models.py [83ms] 2025-09-12 15:40:57.983 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/models/project_models.py [506ms] 2025-09-12 15:41:00.403 [info] > git ls-tree -l HEAD -- src/services/project_service.py [49ms] 2025-09-12 15:41:00.441 [info] > git show --textconv HEAD:src/services/project_service.py [92ms] 2025-09-12 15:41:01.357 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/services/project_service.py [858ms] 2025-09-12 15:41:49.057 [info] > git ls-files --stage -- src/models/ticket_models.py [12ms] 2025-09-12 15:41:49.081 [info] > git show --textconv :src/models/ticket_models.py [38ms] 2025-09-12 15:41:49.083 [info] > git cat-file -s 1ce5b6539b34a987902180992eb2fe2f98ea7d57 [23ms] 2025-09-12 15:41:49.867 [info] > git check-ignore -v -z --stdin [14ms] 2025-09-12 15:41:50.310 [info] > git ls-files --stage -- src/services/project_service.py [10ms] 2025-09-12 15:41:50.346 [info] > git show --textconv :src/services/project_service.py [48ms] 2025-09-12 15:41:50.347 [info] > git cat-file -s c63efcc874f9c65b09f7c94bd83c1e06ce41e807 [34ms] 2025-09-12 15:41:53.541 [info] > git ls-files --stage -- src/api/ticket_routes.py [13ms] 2025-09-12 15:41:53.583 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [39ms] 2025-09-12 15:41:53.584 [info] > git show --textconv :src/api/ticket_routes.py [58ms] 2025-09-12 15:41:53.817 [info] > git check-ignore -v -z --stdin [19ms] 2025-09-12 15:41:53.818 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/api/ticket_routes.py [184ms] 2025-09-12 15:41:54.410 [info] > git ls-files --stage -- src/services/ticket_service.py [13ms] 2025-09-12 15:41:54.450 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [38ms] 2025-09-12 15:41:54.452 [info] > git show --textconv :src/services/ticket_service.py [59ms] 2025-09-12 15:41:54.788 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/services/ticket_service.py [277ms] 2025-09-12 15:42:39.253 [info] > git ls-files --stage -- src/main.py [12ms] 2025-09-12 15:42:39.298 [info] > git show --textconv :src/main.py [60ms] 2025-09-12 15:42:39.302 [info] > git cat-file -s 96133397ecbeceae4f4197ea25b3d9e9c29ebfed [46ms] 2025-09-12 15:42:40.015 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/main.py [657ms] 2025-09-12 15:46:26.930 [info] > git ls-files --stage -- src/services/project_service.py [16ms] 2025-09-12 15:46:26.953 [info] > git show --textconv :src/services/project_service.py [41ms] 2025-09-12 15:46:26.955 [info] > git cat-file -s c63efcc874f9c65b09f7c94bd83c1e06ce41e807 [23ms] 2025-09-12 15:46:27.284 [info] > git ls-files --stage -- src/api/ticket_routes.py [19ms] 2025-09-12 15:46:27.328 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [41ms] 2025-09-12 15:46:27.329 [info] > git show --textconv :src/api/ticket_routes.py [68ms] 2025-09-12 15:46:50.073 [info] > git ls-files --stage -- src/services/ticket_service.py [11ms] 2025-09-12 15:46:50.118 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [42ms] 2025-09-12 15:46:50.120 [info] > git show --textconv :src/services/ticket_service.py [61ms] 2025-09-12 16:08:52.369 [info] > git ls-files --stage -- src/services/project_service.py [12ms] 2025-09-12 16:08:52.391 [info] > git show --textconv :src/services/project_service.py [36ms] 2025-09-12 16:08:52.401 [info] > git cat-file -s c63efcc874f9c65b09f7c94bd83c1e06ce41e807 [28ms] 2025-09-12 16:08:53.157 [info] > git ls-files --stage -- src/api/ticket_routes.py [10ms] 2025-09-12 16:08:53.181 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [21ms] 2025-09-12 16:08:53.181 [info] > git show --textconv :src/api/ticket_routes.py [37ms] 2025-09-12 16:08:56.395 [info] > git ls-files --stage -- src/models/ticket_models.py [11ms] 2025-09-12 16:08:56.419 [info] > git show --textconv :src/models/ticket_models.py [38ms] 2025-09-12 16:08:56.422 [info] > git cat-file -s 1ce5b6539b34a987902180992eb2fe2f98ea7d57 [25ms] 2025-09-12 16:08:57.233 [info] > git ls-files --stage -- src/services/ticket_service.py [8ms] 2025-09-12 16:08:57.263 [info] > git show --textconv :src/services/ticket_service.py [41ms] 2025-09-12 16:08:57.265 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [29ms] 2025-09-12 16:28:24.609 [info] > git check-ignore -v -z --stdin [15ms] 2025-09-12 16:28:25.590 [info] > git ls-files --stage -- src/api/design_routes.py [13ms] 2025-09-12 16:28:25.632 [info] > git show --textconv :src/api/design_routes.py [59ms] 2025-09-12 16:28:25.634 [info] > git cat-file -s 3341bb255a4e51a2c945be17560ecc9cd8e84461 [40ms] 2025-09-12 16:28:25.878 [info] > git blame --root --incremental 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8 -- src/api/design_routes.py [195ms] 2025-09-12 16:28:47.444 [info] > git ls-files --stage -- src/api/ticket_routes.py [11ms] 2025-09-12 16:28:47.470 [info] > git show --textconv :src/api/ticket_routes.py [40ms] 2025-09-12 16:28:47.472 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [25ms] 2025-09-12 16:28:58.089 [info] > git ls-files --stage -- src/services/ticket_service.py [9ms] 2025-09-12 16:28:58.115 [info] > git show --textconv :src/services/ticket_service.py [38ms] 2025-09-12 16:28:58.116 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [24ms] 2025-09-12 16:48:38.957 [info] > git check-ignore -v -z --stdin [22ms] 2025-09-12 16:48:40.301 [info] > git ls-files --stage -- src/api/ticket_routes.py [23ms] 2025-09-12 16:48:40.358 [info] > git show --textconv :src/api/ticket_routes.py [82ms] 2025-09-12 16:48:40.364 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [60ms] 2025-09-12 16:48:44.230 [info] > git ls-files --stage -- src/services/ticket_service.py [8ms] 2025-09-12 16:48:44.263 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [30ms] 2025-09-12 16:48:44.266 [info] > git show --textconv :src/services/ticket_service.py [48ms] 2025-09-12 16:50:57.185 [info] > git ls-files --stage -- src/api/ticket_routes.py [16ms] 2025-09-12 16:50:57.219 [info] > git show --textconv :src/api/ticket_routes.py [54ms] 2025-09-12 16:50:57.221 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [32ms] 2025-09-12 16:51:02.535 [info] > git ls-files --stage -- src/services/ticket_service.py [10ms] 2025-09-12 16:51:02.561 [info] > git show --textconv :src/services/ticket_service.py [38ms] 2025-09-12 16:51:02.562 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [24ms] 2025-09-12 16:51:27.866 [info] > git ls-files --stage -- src/api/ticket_routes.py [12ms] 2025-09-12 16:51:27.890 [info] > git show --textconv :src/api/ticket_routes.py [38ms] 2025-09-12 16:51:27.892 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [23ms] 2025-09-12 16:51:28.683 [info] > git check-ignore -v -z --stdin [16ms] 2025-09-12 16:51:30.428 [info] > git ls-files --stage -- src/services/ticket_service.py [16ms] 2025-09-12 16:51:30.467 [info] > git show --textconv :src/services/ticket_service.py [58ms] 2025-09-12 16:51:30.468 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [37ms] 2025-09-12 16:51:59.036 [info] > git config --get commit.template [10ms] 2025-09-12 16:51:59.120 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [90ms] 2025-09-12 16:51:59.295 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [166ms] 2025-09-12 16:51:59.398 [info] > git status -z -uall [272ms] 2025-09-12 16:52:00.287 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [48ms] 2025-09-12 16:52:00.323 [info] > git show --textconv HEAD:src/services/ticket_service.py [87ms] 2025-09-12 16:52:42.545 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [57ms] 2025-09-12 16:52:53.560 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [67ms] 2025-09-12 16:52:56.036 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [54ms] 2025-09-12 16:52:56.062 [info] > git checkout -q -- src/services/ticket_service.py [75ms] 2025-09-12 16:52:56.078 [info] > git config --get commit.template [10ms] 2025-09-12 16:52:56.169 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [98ms] 2025-09-12 16:52:56.387 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [200ms] 2025-09-12 16:52:56.508 [info] > git status -z -uall [326ms] 2025-09-12 16:54:27.240 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [87ms] 2025-09-12 16:54:28.830 [info] > git ls-files --stage -- src/services/ticket_service.py [18ms] 2025-09-12 16:54:28.878 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [45ms] 2025-09-12 16:54:28.879 [info] > git show --textconv :src/services/ticket_service.py [71ms] 2025-09-12 16:59:20.173 [info] > git config --get commit.template [17ms] 2025-09-12 16:59:20.246 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [86ms] 2025-09-12 16:59:20.417 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [163ms] 2025-09-12 16:59:20.512 [info] > git status -z -uall [261ms] 2025-09-12 16:59:21.485 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [51ms] 2025-09-12 16:59:21.519 [info] > git show --textconv HEAD:src/services/ticket_service.py [89ms] 2025-09-12 17:01:01.592 [info] > git ls-files --stage -- src/services/ticket_service.py [10ms] 2025-09-12 17:01:01.619 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [23ms] 2025-09-12 17:01:01.619 [info] > git show --textconv :src/services/ticket_service.py [41ms] 2025-09-12 17:01:02.084 [info] > git ls-files --stage -- src/api/ticket_routes.py [10ms] 2025-09-12 17:01:02.110 [info] > git show --textconv :src/api/ticket_routes.py [39ms] 2025-09-12 17:01:02.118 [info] > git cat-file -s 43bf38a728ee0c0d74c292af89e4914aa477fb5a [32ms] 2025-09-12 17:01:03.444 [info] > git ls-files --stage -- src/services/project_service.py [6ms] 2025-09-12 17:01:03.470 [info] > git show --textconv :src/services/project_service.py [35ms] 2025-09-12 17:01:03.471 [info] > git cat-file -s c63efcc874f9c65b09f7c94bd83c1e06ce41e807 [24ms] 2025-09-12 17:04:53.017 [info] > git ls-tree -l HEAD -- src/services/project_service.py [46ms] 2025-09-12 17:04:53.044 [info] > git show --textconv HEAD:src/services/project_service.py [76ms] 2025-09-12 17:05:01.194 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [64ms] 2025-09-12 17:59:34.499 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [73ms] 2025-09-12 17:59:38.338 [info] > git ls-files --stage -- src/services/ticket_service.py [14ms] 2025-09-12 17:59:38.377 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [35ms] 2025-09-12 17:59:38.377 [info] > git show --textconv :src/services/ticket_service.py [56ms] 2025-09-12 17:59:41.726 [info] > git ls-tree -l HEAD -- src/services/project_service.py [93ms] 2025-09-15 09:04:25.434 [info] > git ls-tree -l HEAD -- src/services/project_service.py [150ms] 2025-09-15 09:24:30.353 [info] > git ls-tree -l HEAD -- src/services/project_service.py [88ms] 2025-09-15 09:45:29.762 [info] > git ls-tree -l HEAD -- src/services/project_service.py [72ms] 2025-09-15 09:45:32.465 [info] > git ls-files --stage -- src/services/ticket_service.py [13ms] 2025-09-15 09:45:32.503 [info] > git show --textconv :src/services/ticket_service.py [54ms] 2025-09-15 09:45:32.504 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [35ms] 2025-09-15 13:12:47.445 [info] > git ls-tree -l HEAD -- src/models/project_models.py [45ms] 2025-09-15 13:12:47.468 [info] > git show --textconv HEAD:src/models/project_models.py [71ms] 2025-09-15 13:12:50.439 [info] > git ls-tree -l HEAD -- src/services/project_service.py [45ms] 2025-09-15 13:12:50.462 [info] > git show --textconv HEAD:src/services/project_service.py [71ms] 2025-09-15 13:12:51.318 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [45ms] 2025-09-15 13:12:51.340 [info] > git show --textconv HEAD:src/services/ticket_service.py [71ms] 2025-09-15 13:12:51.709 [info] > git ls-tree -l HEAD -- src/services/project_service.py [40ms] 2025-09-15 13:12:51.737 [info] > git show --textconv HEAD:src/services/project_service.py [71ms] 2025-09-15 13:12:52.388 [info] > git ls-tree -l HEAD -- src/models/project_models.py [45ms] 2025-09-15 13:12:52.418 [info] > git show --textconv HEAD:src/models/project_models.py [78ms] 2025-09-15 13:13:00.112 [info] > git ls-tree -l HEAD -- src/services/project_service.py [49ms] 2025-09-15 13:13:00.151 [info] > git show --textconv HEAD:src/services/project_service.py [92ms] 2025-09-15 13:13:14.333 [info] > git add -A -- src/models/project_models.py [63ms] 2025-09-15 13:13:14.348 [info] > git config --get commit.template [9ms] 2025-09-15 13:13:14.408 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [66ms] 2025-09-15 13:13:14.558 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [140ms] 2025-09-15 13:13:14.619 [info] > git status -z -uall [204ms] 2025-09-15 13:13:17.976 [info] > git add -A -- src/services/project_service.py [50ms] 2025-09-15 13:13:17.992 [info] > git config --get commit.template [9ms] 2025-09-15 13:13:18.066 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [80ms] 2025-09-15 13:13:18.202 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [127ms] 2025-09-15 13:13:18.269 [info] > git status -z -uall [197ms] 2025-09-15 13:13:18.333 [info] > git ls-tree -l HEAD -- src/services/project_service.py [41ms] 2025-09-15 13:13:18.352 [info] > git show --textconv HEAD:src/services/project_service.py [62ms] 2025-09-15 13:13:36.242 [info] > git ls-files --stage -- src/services/project_service.py [19ms] 2025-09-15 13:13:36.288 [info] > git cat-file -s 9227faf1e67e7f7a0df23163cafb75f4287c5feb [42ms] 2025-09-15 13:13:36.344 [info] > git show --textconv :src/services/project_service.py [48ms] 2025-09-15 13:13:53.024 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [320ms] 2025-09-15 13:13:53.024 [info] Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: no email was given and auto-detection is disabled 2025-09-15 13:13:53.085 [info] > git config --get-all user.name [56ms] 2025-09-15 13:13:53.104 [info] > git config --get commit.template [14ms] 2025-09-15 13:13:53.229 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [130ms] 2025-09-15 13:13:53.387 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [150ms] 2025-09-15 13:13:53.473 [info] > git status -z -uall [239ms] 2025-09-15 13:13:58.553 [info] > git ls-files --stage -- src/services/project_service.py [19ms] 2025-09-15 13:13:58.596 [info] > git cat-file -s 9227faf1e67e7f7a0df23163cafb75f4287c5feb [40ms] 2025-09-15 13:14:12.283 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [179ms] 2025-09-15 13:14:12.283 [info] Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: no email was given and auto-detection is disabled 2025-09-15 13:14:12.296 [info] > git config --get-all user.name [10ms] 2025-09-15 13:14:12.308 [info] > git config --get commit.template [7ms] 2025-09-15 13:14:12.400 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [95ms] 2025-09-15 13:14:12.555 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [146ms] 2025-09-15 13:14:12.625 [info] > git status -z -uall [219ms] 2025-09-15 13:14:12.707 [info] > git merge-base refs/heads/develop refs/remotes/origin/develop [77ms] 2025-09-15 13:14:12.808 [info] > git diff --name-status -z --diff-filter=ADMR 4ef9932fddb4a218daa47e7e70e0d9aab2a6ede8...refs/remotes/origin/develop [98ms] 2025-09-15 13:14:14.765 [info] > git ls-files --stage -- src/services/project_service.py [48ms] 2025-09-15 13:14:14.822 [info] > git cat-file -s 9227faf1e67e7f7a0df23163cafb75f4287c5feb [52ms] 2025-09-15 13:14:20.147 [info] > git ls-files --stage -- src/services/project_service.py [19ms] 2025-09-15 13:14:20.196 [info] > git cat-file -s 9227faf1e67e7f7a0df23163cafb75f4287c5feb [45ms] 2025-09-15 13:14:21.124 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [40ms] 2025-09-15 13:14:21.156 [info] > git show --textconv HEAD:src/services/ticket_service.py [75ms] 2025-09-15 13:14:31.164 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [55ms] 2025-09-15 13:14:47.214 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [52ms] 2025-09-15 13:14:47.226 [info] > git checkout -q -- src/services/ticket_service.py [59ms] 2025-09-15 13:14:47.256 [info] > git config --get commit.template [24ms] 2025-09-15 13:14:47.780 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [544ms] 2025-09-15 13:14:48.288 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [489ms] 2025-09-15 13:14:48.446 [info] > git status -z -uall [650ms] 2025-09-15 13:14:49.049 [info] > git ls-files --stage -- src/services/ticket_service.py [14ms] 2025-09-15 13:14:49.102 [info] > git show --textconv :src/services/ticket_service.py [71ms] 2025-09-15 13:14:49.102 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [49ms] 2025-09-15 13:14:49.414 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [63ms] 2025-09-15 13:14:50.180 [info] > git ls-files --stage -- src/services/ticket_service.py [15ms] 2025-09-15 13:14:50.218 [info] > git show --textconv :src/services/ticket_service.py [59ms] 2025-09-15 13:14:50.223 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [37ms] 2025-09-15 13:14:50.401 [info] > git ls-tree -l HEAD -- src/services/ticket_service.py [89ms] 2025-09-15 13:14:52.217 [info] > git ls-files --stage -- src/services/ticket_service.py [35ms] 2025-09-15 13:14:52.282 [info] > git cat-file -s 2018901e87f1e3c0297dd01960c3828b1c4e687c [61ms] 2025-09-15 13:14:52.291 [info] > git show --textconv :src/services/ticket_service.py [113ms] 2025-09-15 13:15:00.322 [info] > git config --get commit.template [25ms] 2025-09-15 13:15:00.532 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [230ms] 2025-09-15 13:15:00.737 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [188ms] 2025-09-15 13:15:00.919 [info] > git status -z -uall [375ms] 2025-09-15 13:15:20.751 [info] > git config --get commit.template [28ms] 2025-09-15 13:15:20.952 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [224ms] 2025-09-15 13:15:21.426 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [462ms] 2025-09-15 13:15:22.066 [info] > git status -z -uall [1105ms] 2025-09-15 13:15:22.133 [info] > git merge-base refs/heads/develop refs/remotes/origin/develop [59ms] 2025-09-15 13:15:22.187 [info] > git diff --name-status -z --diff-filter=ADMR e64a67ba180bfcd9f878d8d5bc85d91e6c5109ed...refs/remotes/origin/develop [49ms] 2025-09-15 13:15:23.213 [info] > git blame --root --incremental e64a67ba180bfcd9f878d8d5bc85d91e6c5109ed -- src/services/ticket_service.py [1142ms] 2025-09-15 13:15:31.808 [info] > git config --get commit.template [34ms] 2025-09-15 13:15:32.281 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [494ms] 2025-09-15 13:15:32.991 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [680ms] 2025-09-15 13:15:33.303 [info] > git status -z -uall [996ms] 2025-09-15 13:15:37.550 [info] > git add -A -- . [248ms] 2025-09-15 13:15:37.839 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [285ms] 2025-09-15 13:15:37.839 [info] Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: no email was given and auto-detection is disabled 2025-09-15 13:15:37.855 [info] > git config --get-all user.name [11ms] 2025-09-15 13:15:37.870 [info] > git config --get commit.template [10ms] 2025-09-15 13:15:37.969 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [105ms] 2025-09-15 13:15:38.324 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [343ms] 2025-09-15 13:15:38.439 [info] > git status -z -uall [461ms] 2025-09-15 13:16:17.761 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [1322ms] 2025-09-15 13:16:17.761 [info] Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: no email was given and auto-detection is disabled 2025-09-15 13:16:17.822 [info] > git config --get-all user.name [57ms] 2025-09-15 13:16:17.850 [info] > git config --get commit.template [21ms] 2025-09-15 13:16:18.456 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/develop refs/remotes/develop [621ms] 2025-09-15 13:16:19.115 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [642ms] 2025-09-15 13:16:19.640 [info] > git status -z -uall [1170ms] 是什么问题?
09-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值