Answers for "create branch and checkout at the same time in git"

1

create branch and checkout at the same time in git

git checkout -b <new_branch_name> <branch_from>
#<new_branch_name> --> name of the new branch being created.
#<branch_from> --> name of the branch to branch from.
#NB: no need to provide <branch_from> if that is the active branch.
Posted by: Guest on September-05-2021
4

git branch and checkout at the same time

$ git checkout -b <branch_name>
Posted by: Guest on June-25-2020

Code answers related to "create branch and checkout at the same time in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language