atlaschiew / git-study

happy giting
0 stars 0 forks source link

create new branch #8

Open atlaschiew opened 1 year ago

atlaschiew commented 1 year ago
git checkout -b <branch_name>

or

git switch -c <branch_name>
atlaschiew commented 1 year ago

the git checkout command creates, and switches branches, restores and undo changes from commit; however, git switch only creates and switches branches. Git switch and git checkout let you create and move into a branch.