Create a new branch on git locally

To create a new branch on Git locally, you can use the following command:

git branch <branch-name>

Replace <branch-name> with the name you want to give your new branch.

For example, to create a new branch called "feature/new-login-system", you would run:

git branch feature/new-login-system

This will create a new branch with the specified name, but it won't switch you to that branch. To switch to the new branch, you can use:

git checkout <branch-name>

So, to switch to the "feature/new-login-system" branch, you would run:

git checkout feature/new-login-system

If you want to create a new branch and switch to it in one step, you can use:

git checkout -b <branch-name>

This will create a new branch with the specified name and switch you to that branch.

For example, to create a new branch called "feature/new-login-system" and switch to it, you would run:

git checkout -b feature/new-login-system

Note: If you're working on a remote repository, you'll need to push your new branch to the remote repository for others to see it. You can do this with:

git push origin <branch-name>

Replace <branch-name> with the name of your new branch.