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 :: windows cmd schedule shutdown 
Shell :: how to remove remote ulr 
Shell :: install miniconda on mac 
Shell :: raspberry pi wifi setup wpa_supplicant 
Shell :: linux command to cut file and paste somewhere else 
Shell :: get ros version 
Shell :: extract bz2 linux 
Shell :: install makerbundle sur symfony 3.4 
Shell :: git commit -m author identity unknown 
Shell :: exec user process caused: exec format error 
Shell :: create sbt project 
Shell :: ubuntu adduser 
Shell :: conda install pydub 
Shell :: install the latest docker on ubuntu 20.04 
Shell :: git lines of code per user 
Shell :: uninstall gitlab-ee 
Shell :: where are ubuntu files stored in windows 10 
Shell :: grep specific file 
Shell :: ubuntu unzip zip 
Shell :: truncate docker logs 
Shell :: vim open shell in current directory 
Shell :: git pull your local changes will be overwritten by merge 
Shell :: install crate 
Shell :: install discord in linux 
Shell :: how do i update ubuntu 
Shell :: delete files with extension recursively 
Shell :: git replace with origin branch 
Shell :: linux search inside files 
Shell :: bash get time milliseconds 
Shell :: how to install mpv linux 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =