I have GitHub repository with multiple branches, and I want to commit and push changes to a specific branch, how can I switch from "master*" branch to another branch?
I tried to switch by clicking the branch name in the left bottom side of the screen and it didn’t switch.
3
Answers
You can also try this:
you do
git branch branch_name
thengit checkout branch_name
for switching between the branches. If you have already more than one branch.
or,
for creating the branch you can use
and for creating and switching to that branch simuntaneously.