Reference git stash by number without stash@{i}
问题 I'm using git stashes extensively. Sometimes it becomes annoying to type out stash@{3} when, at first glance, a simple 3 should suffice. Is it possible to use the shorter reference somehow? I know a solution with shell aliases. Making an alias like sshow = "!f { git stash show @{$@}; }; f" allows using git sshow 1 . It even allows passing additional arguments to git stash show if $@ is expanded properly. However, in this case git autocomplete does not work: when git stash show stash@{0} --