git switch <branch_name>
git checkout <branch_name>
git checkout 'another_branch'
//switch to existing branch
git checkout branchName
//create new branch and switch
git checkout -b newBranchName
git switch branch-name # new syntax (as of Git 2.23)
git checkout branch-name # old syntax
git switch branch_name
git checkout branch_name
$ git checkout -b <new branch>
git checkout -b myNewBranch
git switch branch_name_to_switch_to
#you will switch to that branch and changes between them will take effect
Note: changes if you switch to a branch will change back once you switch
back to the original branch/
wonder.woman@highfive project % git checkout branch_name
#this let you keep edited files
wonder.woman@highfive project % git switch branch_name
// git checkout (nameOfTheBranch)
git checkout homePage
Github branch
pull request in branch
Code Example |
---|
Shell :: macos kill process on port |
Shell :: install groovy on ubuntu |
Shell :: ubuntu search package |
Shell :: get users linux |
Shell :: loopback cli |
Shell :: debian terminal paste |
Shell :: batch script if statement |
Shell :: how to kill a process with linux |
Shell :: linux terminal commands |
Shell :: edit file terminal |
Shell :: git enable lfs |
Shell :: list only directories in linux |
Shell :: main vs master in git |
Shell :: pnpm install dev |
Shell :: github page 404 |
Shell :: install lando linux |
Shell :: install docker ubuntu |
Shell :: shell script delete line containing |
Shell :: how to install xdebug on Windows |
Shell :: remove untracked files |
Shell :: how to delete branch github |
Shell :: install kubens on ubuntu |
Shell :: solana install |
Shell :: image in github readme |
Shell :: microsoft store installation location |
Shell :: How to unzip a file using the cmd? |
Shell :: turn redis off |
Shell :: echo |
Shell :: brew install ubuntu |
Shell :: Command for installing Brave browser |