有什麼辦法git checkout上一個分支嗎? - Is there any way to git checkout previous branch?

問題:

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


解決方案:

參考一: https://stackoom.com/question/UEoj/有什麼辦法git-checkout上一個分支嗎
參考二: https://oldbug.net/q/UEoj/Is-there-any-way-to-git-checkout-previous-branch
相關文章
相關標籤/搜索