Sfoglia il codice sorgente

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

lmazardo 5 anni fa
parent
commit
97bc3a92f9
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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}}`