Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git change master to main

# Step 1 
# create main branch locally, taking the history from master
git branch -m master main
# Step 2 
# push the new local main branch to the remote repo (GitHub) 
git push -u origin main
# Step 3
# switch the current HEAD to the main branch
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
# Step 4
# change the default branch on GitHub to main
# https://docs.github.com/en/github/administering-a-repository/setting-the-default-branch
# Step 5
# delete the master branch on the remote
git push origin --delete master
Comment

change master to main git

$ git branch -m master main
Comment

PREVIOUS NEXT
Code Example
Shell :: brew portkill 
Shell :: how to uninstall a aur package 
Shell :: cannot install ngx-toastr in angular 13 
Shell :: kill all process linux 
Shell :: install make 
Shell :: cisco copy running config 
Shell :: grep remove duplicates 
Shell :: conda install paraview 
Shell :: git user config 
Shell :: change branch from master to main 
Shell :: How to find information about my RAM on linux 
Shell :: git tag a previous commit 
Shell :: Use pip to install the EB CLI. 
Shell :: installing plesk on linux 
Shell :: how to access mongo shell 
Shell :: how to cd to a folder with a space 
Shell :: fix read only file system 
Shell :: install vlc on ubuntu 20.04 
Shell :: npm default init 
Shell :: git remove untracked files 
Shell :: -bash: bin/startup.sh: Permission denied 
Shell :: gitlab new project push commands 
Shell :: tar file linux 
Shell :: git replace local branch with remote 
Shell :: push a new branch git 
Shell :: github create branch from issue 
Shell :: vscode safe mode 
Shell :: installing snap store 
Shell :: brew in mac 
Shell :: install brave on linux 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =