结帐后 Git 历史记录会发生变化



我有一个我很满意的历史:

$ git log --oneline -n60
b1bbe6a JIRA-1569 later fixes
b021112 JIRA-1569 later fixes
0734203 JIRA-1569 adding new statuses
b38c4a2 Merge branch 'feature/MultipleStars' of feature/MultipleStars
0e2bcbd Merge remote-tracking branch 'remotes/origin/feature/AutoStars' into feature/MultipleStars
d8d6be9 JIRA-1520 Removed the datasource reference from web.xml to fix java naming lookup issue
d8085e0 JIRA-1569 fix filter
9641af1 JIRA-1569 displaying MR info
ecb3b3c JIRA-1569 commit
002820d JIRA-1569 include statuses and dates in the response
7b912c8 JIRA-1569 translate SP to ibatis
9de1c77 JIRA-3107 : Put a condition for userid (only for IVR reqeust) to avoid concurrent login session check.
e78716c JIRA-3181 - Mass Reformat and removal of Imports
2907ffc JIRA-3057 Auto accept WS Changes.                <<<<<---HERE!!!!!
212379a JIRA-3057 Auto Accept changes.
2f79bbc JIRA-76 MP Payment Acceptance with fixed Acceptance type
842c02f JIRA-59 Multiple Payee dashboard changes
3552c15 JIRA-3056 Auto Accept Changes in request response
f03d150 Merge pull request #25 in JIRA/My from release/digitalStarts to feature/RealTimeStars
4c9a7d6 JIRA-2274 Added blah, blah in the correct position and rererred the right package name.
288eb2b JIRA-2274 - Update RTP Payments in Transaction Staging
9dfdf7c JIRA-2272, JIRA-51 - Initial commit - Fetch CP RTP value and RTP Routing number Validation
a16ce9a JIRA-2378 - Settings file to build web service

但是,我做了结帐(我在上面标记为这里(:

$get checkout 2907ffc 

现在我得到了不同的历史:

$ git log --oneline
2907ffc JIRA-3057 Auto accept WS Changes.
212379a JIRA-3057 Auto Accept changes.
3552c15 JIRA-3056 Auto Accept Changes in request response
f03d150 Merge pull request #25 in CQP3/consumer-portal-webservice from release/digitalClearXChangePhase2 to feature/RealTimePayments
4c9a7d6 JIRA-2274 Added blah, blah in the correct position and rererred the right package name.
288eb2b JIRA-2274 - Update RTP Payments in Transaction Staging

这 2 个提交已从历史记录中消失:。

2f79bbc JIRA-76 MP Payment Acceptance with fixed Acceptance type
842c02f JIRA-59 Multiple Payee dashboard changes

以为我相当了解 git,但这让我非常困惑。

如果提交有多个祖先,你将在日志中看到所有祖先交错,按时间戳排序。 所以我猜你有这样的情况:

A --> B --> C ---> D
        
         -----> E ----> F

你最初在A,所以你的日志显示你ABCEDF。 然后你签出(说(C,所以现在你只能看到CD

确认这一点的最简单方法是使用 --graph 标志重新运行git log

相关内容

  • 没有找到相关文章

最新更新