Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

change git default branch

git config --global init.defaultBranch <defaultBranchName>
Comment

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.
Comment

change default branch github

git branch -m master main

git push -u origin main

git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

# change default branch on GitHub

git push origin --delete master
Comment

how to change my default branch in git

'settings' >> 'Code and Automation' >> 'Branches' >> 'Default Branch'

On GitHub.com, navigate to the main page of the repository.
Under your repository name, click "Settings".
In the "Code and automation" section of the sidebar, click "Branches".
Under "Default branch", to the right of the default branch name, click.
Use the drop-down, then select a branch name.

source: 'https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch#changing-the-default-branch'
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: install adminlte 
Shell :: git add and commit all in just one line 
Shell :: bash create symbolic link to other symbolic links 
Shell :: how to fix git commits 
Shell :: compare two files shell script 
Shell :: adobe reader for ubuntu 20.04 
Shell :: install npm windows subsystem linux 
Shell :: create ssh key 
Shell :: sed up to first match 
Shell :: linux stress test 
Shell :: change your default términal 
Shell :: git local git ignore 
Shell :: git reset soft 
Shell :: download fbreader for ubuntu 
Shell :: git --version git version 2.7.0 (Apple Git-66) 
Shell :: certbot apache subdomain 
Shell :: working fork linux c compiler 
Shell :: am i ~/.zshrc or ~/.bashrc 
Shell :: 2 digit after the coma pytohn 
Shell :: how to access network settings raspberry pi 
Shell :: order allow deny 
Shell :: awk first upper 
Shell :: heroku push non master branch 
Shell :: ubuntu googls drive setup 
Shell :: kde vs gnome 
Shell :: install global package golang 
Shell :: add stetho plugin ionic 
Shell :: crontab is not running my shell script 
Shell :: git show which commits deleted file 
Shell :: how to recover last commit git 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =