Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to switch from master to main

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

how to switch from master to main

Steps
Step 1 – Move the master branch to 'main'
Step 2 – Push 'main' to remote repo.
Step 3 – Point HEAD to 'main' branch.
Step 4 – Change default branch to 'main' on GitHub site.
Step 5 – Delete 'master' branch on the remote repo.
Comment

PREVIOUS NEXT
Code Example
Shell :: change or set password interactively prompt in linux 
Shell :: To install Scrapy on Ubuntu (or Ubuntu-based) systems 
Shell :: rials db down 
Shell :: copy from vim to clipboard 
Shell :: how to upgrade pnpm 
Shell :: remove empty page pdf 
Shell :: copy data to kubernetes pod 
Shell :: linux repeat command every 5 minutes 
Shell :: test gatsby app on mobile 
Shell :: linux mint download 
Shell :: Find CentOS version and architecture 
Shell :: powershell tcp reverse shell 
Shell :: gulp trust cert 
Shell :: immutable byte 
Shell :: step5 pgadmin ubuntu 20.04 
Shell :: grep show lines between matches 
Shell :: stern install mac 
Shell :: creating docker based vms with ranchervm but requires KVM installed 
Shell :: linux add homedir 
Shell :: /usr/local/etc/httpd/httpd.conf 
Shell :: android ndk - configure does not recognize androideabi 
Shell :: redis mac 
Shell :: latte dock application launcher shortcut 
Shell :: batch call another batch with parameters 
Shell :: xargs parameter 
Shell :: untar ubuntu 
Shell :: puppet install on centos 7 
Shell :: git config --global user.name "Server" 
Shell :: checking remote status in git 
Shell :: Play any video on Ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =