git config --global push.default
今天 git push 的時候 遇到 push.default is unset 的訊息,如圖。
雖然他給了 matching 和 simple 兩個選項,但我並不知道兩個選項的差別在哪裡?
根據官方文件的解釋:
根據這個解釋,對我來說比較好的選項是 simple。

根據官方文件的解釋:
- simple 只會 push 遠端同名的當前分支,是適合初學者的最安全選項。
- matching 則是 push 所有具有相同名稱的分支
根據這個解釋,對我來說比較好的選項是 simple。
留言
張貼留言