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

388 B

alias, name
alias name
create branch from commit create branch from commit

up::Git Branches title::"git checkout -b <branch_name> <commit_sha>" title::"git branch <branch_name> <commit_sha>" #informatique


$> git checkout -b <branch_name> <commit_sha>  # create and switch to the new branch
$> git branch <branch_name> <commit_sha>  # create but don't switch