Switch branches
low risk
Modern replacement for branch switching.
| Flag | Meaning |
|---|---|
-c | Create a branch |
- | Previous branch |
git switch -c feature/xCreate and switch · explain & risk-check →git switch -Back to the previous branch · explain & risk-check →Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.