How To Switch Branch In Git?

`git branch`

`git switch branch-name`

`git checkout branch-name`

`git switch -c new-branch-name`

`git checkout -b new-branch-name`

`git switch -`

`git checkout -`

`git status`

`git fetch`

`git switch –track origin/branch-name`

Suggested for You

Trending Today