mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-11 02:14:04 +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
|
$ git clone git://github.com/tiimgreen/toc.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## Changing Directories
|
## Previous Branch
|
||||||
|
|
||||||
To move to the previous directory in the command line:
|
To move to the previous directory in the command line:
|
||||||
|
|
||||||
@@ -43,6 +43,9 @@ Similarly, to move to the last branch in git:
|
|||||||
```bash
|
```bash
|
||||||
$ git checkout -
|
$ git checkout -
|
||||||
# Switched to branch 'master'
|
# Switched to branch 'master'
|
||||||
|
|
||||||
|
$ git checkout -
|
||||||
|
# Switched to branch 'next'
|
||||||
```
|
```
|
||||||
|
|
||||||
## git.io
|
## git.io
|
||||||
|
Reference in New Issue
Block a user