mil*_*eow 2 git fish
我开始使用鱼壳,一切都很顺利……直到我尝试使用 stashes。
出于某种原因: git stash show -p stash@{1}会导致:
git stash show -p stash@{1}
错误信息: stash@1 is not a valid reference
stash@1 is not a valid reference
很长一段时间我都没有发现错误消息不包含{}存储号。
{}
我最终发现我必须引用 stash 引用: git stash show -p 'stash@{1}'
git stash show -p 'stash@{1}'
我需要设置某种外壳配置吗?
我找不到有关解释{}为其他东西或去除大括号的鱼壳的任何信息。
rid*_*ish 5
从fish shell 3.1(今天发布!)开始,不再需要引用。
在 3.1 之前, the{1}被理解为括号扩展,因此必须引用以获得文字括号。
{1}
(此问题中的行为已更改。)
归档时间:
5 年,9 月 前
查看次数:
122 次
最近记录: