8000 Add code to, and rename Change Directory to Previous Branch · splbio/github-cheat-sheet@5ef4990 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ef4990

Browse files
committed
Add code to, and rename Change Directory to Previous Branch
1 parent b8ed51a commit 5ef4990

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Which translates to:
3030
$ git clone git://github.com/tiimgreen/toc.git
3131
```
3232

33-
## Changing Directories
33+
## Previous Branch
3434

3535
To move to the previous directory in the command line:
3636

@@ -43,6 +43,9 @@ Similarly, to move to the last branch in git:
4343
```bash
4444
$ git checkout -
4545
# Switched to branch 'master'
46+
47+
$ git checkout -
48+
# Switched to branch 'next'
4649
```
4750

4851
## git.io

0 commit comments

Comments
 (0)
0