The git branch command allows you to create, list, rename and delete branches.
git branch branchName
Ex: git branch Demo
git branch or git branch --list
git branch -d branchName
Ex: git branch -d Demo
git branch -m branchName
Ex: git branch -m Demo1
git push origin --delete branchName
Ex: git push origin --delete Demo
You can switch between two branches with the git checkout command.
You can merge two branches with the help of git merge command.
Cherry-picking in Git stands for applying some commit from one branch into another branch.
Rebasing is a process to re apply commits on top of another base commit.
Switch branches without committing the current branch.