I sort of want the equivalent of cd -
for git. 我有点想要cd -
git。 If I am in branch master
and I checkout foo
, I would love to be able to type something like git checkout -
to go back to master
, and be able to type it again to return to foo
. 若是我在branch master
而且我签出了foo
,我但愿可以输入git checkout -
以返回到master
,并可以再次键入它以返回到foo
。 git
Does anything like this exist? 像这样的东西存在吗? Would it be hard to implement? 实施起来会很难吗? ui