When trying to create a new branch, from an existing one, I'm faced with these two options:
+ Create branch...
+ Create branch from...
I don't really understand the difference between these two options.
Task 1: Creating a new branch in your local repository Return to Visual Studio Code. Click the master branch from the bottom left. Select Create new branch from…. Enter the name “dev” for the new branch and press Enter. Select the master as the reference branch.
New Branches The git branch command can be used to create a new branch. When you want to start a new feature, you create a new branch off main using git branch new_branch . Once created you can then use git checkout new_branch to switch to that branch.
Both commands are used to create new branches and switch to the branch after successfully created. But
+ Create branch...
will create a new branch from the current branch you are working on.+ Create branch from...
will create a new branch from some other branch in the git repository.I would guess the first creates a branch from the point you are working from at the time... on the other one, you specify where from.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With