通常,我已經pull.rebase = false設定了全域。但是,我正在一個專案中,我特別想pull.rebase = true只為main分支啟用。我知道我可以手動撰寫git pull --rebase,但我不想忘記這樣做。
我也不想pull.rebase = true為整個 repo設定,因為我并不總是(甚至通常)不想進行 rebase pull。
有沒有辦法在每個分支的基礎上設定它?
uj5u.com熱心網友回復:
每個分支都有一個配置引數branch.<name>.rebase:
git config branch.my/branch.rebase true
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/346809.html
標籤:混帐
