Skip to content

Commit 4bcbcd2

Browse files
authored
Update README.md
Added "git switch" command
1 parent 3201cba commit 4bcbcd2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,17 @@ To move from a branch to another:
157157
$ git checkout branchname
158158
```
159159

160+
or
161+
162+
```bash
163+
$ git switch branchname
164+
```
160165
Where "branchname" is the branch you want to move to.
161166

162167
*NOTE: you can also use git-checkout to restore changed files to their latest version.*
163168

164169
- [Read: git-checkout docs](https://git-scm.com/docs/git-checkout)
170+
- [Read: git-switch docs](https://git-scm.com/docs/git-switch)
165171

166172
### Merge branches
167173

0 commit comments

Comments
 (0)