“git拉”能自動保存和彈出掛起的更改嗎?我知道如何解決這個問題:user@host$ git pull
Updating 9386059..6e3ffde
error: Your local changes to the following files would be overwritten by merge:
foo.bar
Please, commit your changes or stash them before you can merge.
Aborting但難道沒有辦法讓git pull做stash和pop為我跳舞?如果此命令有不同的名稱,則可以。為git stash; git pull; git stash pop是一個解決方案,但我想找一個更好的解決方案。
3 回答

交互式愛情
TA貢獻1712條經驗 獲得超3個贊
git pull
git fetch git rebase --autostash FETCH_HEAD
git config alias.pullr '!git fetch; git rebase --autostash FETCH_HEAD'
git pullr
- 3 回答
- 0 關注
- 759 瀏覽
添加回答
舉報
0/150
提交
取消