I cloned a branch "feature/first"
Now I want to create a new one "feature/second"
from "feature/first"
and work with different things
my steps:
1. git clone [...] -b feature/first
2. ?
how can I do that?
I cloned a branch "feature/first"
Now I want to create a new one "feature/second"
from "feature/first"
and work with different things
my steps:
1. git clone [...] -b feature/first
2. ?
how can I do that?
you can do the following actions:
git checkout feature/first
to ensure to be on the "feature/first" branch;
git checkout -b "feature/second"
to create a new branch named "feature/second" and switch on it.
Note: Pay attention on command... you clone a repository and then you can switch or create branch with git checkout
command.