浏览代码

git-checkout: add example to go to previous branch (#3319)

lmazardo 5 年之前
父节点
当前提交
97bc3a92f9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/common/git-checkout.md

+ 4 - 0
pages/common/git-checkout.md

@@ -15,6 +15,10 @@
 
 `git checkout {{branch_name}}`
 
+- Switch to the previously checked out branch:
+
+`git checkout -`
+
 - Switch to an existing remote branch:
 
 `git checkout --track {{remote_name}}/{{branch_name}}`