change git default branch
git config --global init.defaultBranch <defaultBranchName>
change git default branch
git config --global init.defaultBranch <defaultBranchName>
change default branch github
On GitHub, navigate to the main page of the repository.
Under your repository name, click Settings.
In the left menu, click Branches.
Under "Default branch", to the right of the default branch name, click .
Use the drop-down, then click a branch name.
Click Update.
Change default branch on git
git branch -m deploy prod
git fetch origin
git branch -u origin/prod prod
git remote set-head origin -a
change git default branch
git config --global init.defaultBranch <defaultBranchName>
change default branch github
On GitHub, navigate to the main page of the repository.
Under your repository name, click Settings.
In the left menu, click Branches.
Under "Default branch", to the right of the default branch name, click .
Use the drop-down, then click a branch name.
Click Update.
Change default branch on git
git branch -m deploy prod
git fetch origin
git branch -u origin/prod prod
git remote set-head origin -a
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us