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:
@@ -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
|
||||
|
Reference in New Issue
Block a user