簡體   English   中英

為什么 --autostash 選項不起作用??? (與 git pull --rebase 一起使用)

[英]Why won't --autostash option work ??? (used with git pull --rebase)

我在工作中一直使用git pull --rebase --autostash (在 git bash 中,如果這很重要)。

但是由於某種原因,我的一些同事無法使用它,現在我發現它在家里不起作用。

在家里,我在 macbook 上使用 git 2.6.3。

錯誤消息很簡單: error: unknown option `autostash'

有任何想法嗎 ?

該選項僅對 Git 2.9(2016 年 6 月)有效

請參閱“ git pull能否自動隱藏和彈出待處理的更改?

你可以添加一個配置

git config pull.rebase true
git config rebase.autoStash true

這樣,只需要一個git pull

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM