Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git rename master to main

$ git branch -m master main
Comment

rename branch to main

$ git branch -m master main

or create a new one

$ git checkout -b main
Comment

git rename master branch to main

git branch -m master main
Comment

rename branch to main

$ git push -u origin main
Comment

rename branch to main

$ git push origin --delete master
Comment

PREVIOUS NEXT
Code Example
Shell :: remove all files with no extention rm 
Shell :: kubernetes command line to scale down pods 
Shell :: powershell create file content 
Shell :: hibernate command in windows 10 stackoverflow 
Shell :: install kasm ubuntu 
Shell :: ingnore large files in github 
Shell :: ubuntu check permissions of file 
Shell :: remove unused images docker manually version 1.12.6 
Shell :: requirements.txt conda 
Shell :: loop file bash 
Shell :: git pull from another repository 
Shell :: git tag to previous commit 
Shell :: check gateway linux 
Shell :: bash case 
Shell :: windows edit file cmd 
Shell :: how to connect to heroku app using git remotely 
Shell :: bash delete folder 
Shell :: download clamav ubuntu 20 
Shell :: rclone gui 
Shell :: clear untracked files git 
Shell :: gcloud set kubectl context 
Shell :: download calibre ubuntu 
Shell :: $() vs `` bash 
Shell :: add line at beginning of file unix 
Shell :: install react-native-community hooks 
Shell :: copy file batch 
Shell :: ubuntu hide home folder on desktop 
Shell :: setup ftp server linux 
Shell :: installing mongodb on m1 mac 
Shell :: ubuntu install brave 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =