Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added "git switch" command
  • Loading branch information
fx-biocoder authored Jun 5, 2023
1 parent 3201cba commit 4bcbcd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,17 @@ To move from a branch to another:
$ git checkout branchname
```

or

```bash
$ git switch branchname
```
Where "branchname" is the branch you want to move to.

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

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

### Merge branches

Expand Down

0 comments on commit 4bcbcd2

Please sign in to comment.