Answers for "how to switch from master to develop branch in git"

0

How to switch from master to main git branch

git checkout master        # to be sure you are on master branch
git push origin HEAD:main  # and then push the current branch (as master) to main
-or-
git push --force origin HEAD:main
Posted by: Guest on June-09-2021
1

how to make new branch and switch in git

git checkout -b myNewBranch
Posted by: Guest on April-25-2021
1

creating new branch in git

Create a new branch named issue1.

$ git branch testing
Posted by: Guest on November-15-2020

Code answers related to "how to switch from master to develop branch in git"

Browse Popular Code Answers by Language