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