Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git rename master to main

$ git branch -m master main
Comment

rename master to main

# Renaming the Local master Branch to main
git branch -m master main

# Renaming the Remote master Branch as Well
git push -u origin main
# !! Set default branch to main
git push origin --delete master
Comment

git rename master branch to main

git branch -m master main
Comment

rename master to main

// must already have added somethign to HEAD
$ git branch -m master main
Comment

PREVIOUS NEXT
Code Example
Shell :: git delete all tags local and remote 
Shell :: how to git commit without message 
Shell :: Failed to start A high performance web server and a reverse proxy server. 
Shell :: how to install yup 
Shell :: how to remove base from command prompt 
Shell :: restart ssh service 
Shell :: ubuntu check process on port 
Shell :: XAMPP: Starting Apache...fail. 
Shell :: how to install react router dom with typescript 
Shell :: zsh: no such file or directory: /usr/local/bin/composer.phar 
Shell :: how to enable or disable test mode on windows 10 
Shell :: adb shell screenshot 
Shell :: check firewall centos 7 
Shell :: how to install tor browser in ubuntu 
Shell :: how to install gulp 
Shell :: linux watchers limit 
Shell :: delete minikube linux 
Shell :: install mysql server and workbench ubuntu 
Shell :: snap install 
Shell :: install Hardhat locally using npm or Yarn 
Shell :: install netlify cli 
Shell :: powershell get current user 
Shell :: android_home ubuntu 
Shell :: remove systemd service 
Shell :: install kazam ubuntu 20.04 
Shell :: angular cli 
Shell :: uninstall winetricks ubuntu 
Shell :: git change commit message of old commit 
Shell :: install lerna 
Shell :: anaconda navigator linux command 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =