Create a new branch from master with a meaningful name for a new feature or an issue you want to work on:
git checkout -b your-meaningful-branch-name
The git switch command was introduced in version Git 2.23, and is designed to make branch switching more clear and secure.
reference : https://git-scm.com/docs/git-switch
Describe the problem
Create a new branch from
master
with a meaningful name for a new feature or an issue you want to work on:The git switch command was introduced in version Git 2.23, and is designed to make branch switching more clear and secure. reference : https://git-scm.com/docs/git-switch
so I recommend this,
Additional context
Of course, we can use
checkout
.