How to create new branch in git?
git branch <branch_name>
Check the list of branch present for in the working repository?
You can see which branch of the project is pointing also using the command git log –oneline –decorate
git log --oneline --decorate
git checkout testing
If you want a detailed map of which branch is created from which branch you can run the below command to get the graph of it.
git log --oneline --decorate --graph --all
You can create a new branch and switch to that new branch in one line using checkout command with -b switch.
git checkout -b <new branch name>