lazyload the images

最新精選 Featured post

漫畫 - 異世界 清單

訂閱


每月雙數周日為固定發佈日

本站內任何媒體的內容,包括但不限於 影片/聲音檔/文章/圖片,純屬資訊分享和教學用途, 本站內容只作為一般用途,它並沒有考慮您的個人需要、投資目標及特定財政狀況。 本站內容並非投資意見,亦不構成任何投資產品之要約、招攬或建議購買或出售任何存款或投資任何下述投資產品。

投資者須注意,所有投資涉及風險(包括可能會損失投資本金),投資產品的價格可升或可跌, 而所呈列的過往表現資料並不表示將來亦會有類似的表現。

投資者在作出任何投資決定前,投資者應進行所須或適當的獨立調查,包括評估所涉及的投資風險。

23/07/2026

git merge again not work after revert

文章分類: ,




事源

2條branches

有同事操作失誤,merge了branch-feature-payment 去 branch-UAT

payment 開發完,但未拿到批準可以release 到UAT


於是 git revert branch-UAT

即是UNDO 了任何 merge的東西


當branch-feature-payment 拿到批文,真的想merge到 branch時


卻怎麼按都沒反應


AI 解答

Git thinks the branches are already merged. A git revert doesn't erase history; it creates a new commit that undoes the changes. To fix this, you must revert your previous revert commit. Once that's done, you can safely merge your branch again.

No comments:

Post a Comment