cours/git create branch.md
oscar.plaisant@icloud.com 38fbb1938d from github to this gitea
2023-10-23 23:09:51 +02:00

433 B

alias, name
alias name
create branch create branch

up::Git Branches title::"git checkout -b <branch_name> create and switch to", "git branch <branch_nam> create but don't switch" #informatique


Create branch and switch to that new branch

$> git checkout -b <branch_name>
Switched to new branch '<branch_name>'

Create branch but don't switch to that new branch

$> git branch -b <branch_name>