有什么办法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
相关文章
相关标签/搜索