-
Switch to a branch that you want
dev@dev:~/your-project$ git switch [branch-name]
ℹ️ NOTE
Remember to replace
[branch-name]
with your branch name (e.g. develop).Example:
git switch develop
-
To check in which branch you are in
dev@dev:~/your-project$ git branch --show-current