1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-09 17:36:37 +02:00

Add code to, and rename Change Directory to Previous Branch

This commit is contained in:
Tim Green
2014-04-12 21:48:03 +01:00
parent b8ed51ada5
commit 5ef4990771

View File

@@ -30,7 +30,7 @@ Which translates to:
$ git clone git://github.com/tiimgreen/toc.git
```
## Changing Directories
## Previous Branch
To move to the previous directory in the command line:
@@ -43,6 +43,9 @@ Similarly, to move to the last branch in git:
```bash
$ git checkout -
# Switched to branch 'master'
$ git checkout -
# Switched to branch 'next'
```
## git.io