我不知道git config pull.rebase true將存盤在哪里pull.rebase。
當我在特定分支中時,我已經運行了這條確切的行:
git config pull.rebase true
然后,我git config -l用來列出本地組態檔中的所有條目。但是,我看不到其中的pull.rebase任何地方。
這個變數是存盤在其他地方還是使用不同的關鍵字?
uj5u.com熱心網友回復:
git config --show-origin --get-regexp pull
uj5u.com熱心網友回復:
我找到了我的問題的答案。
pull rebase仍然存盤在本地.git/config檔案中。我的組態檔太長,無法全部顯示。我必須輸入才能看到更多變數。
我發現有用的一個命令是git config --show-origin --get <variable you want to find>. 此命令顯示在哪里git可以找到您的變數。
我將其用于pull.rebase并與自己確認它確實在.git/config.
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/334180.html
下一篇:在另一個提交后恢復提交
