Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

rename branch

git push  <REMOTENAME> <LOCALBRANCHNAME>:<REMOTEBRANCHNAME>
Comment

PREVIOUS NEXT
Code Example
Shell :: install jdk linux 
Shell :: mongoclient install ubuntu 
Shell :: conda pydot 
Shell :: conda install cufflinks 
Shell :: install vscode ubuntu command line 
Shell :: git bash new repository 
Shell :: export zip git project bash 
Shell :: error installing pod on m1 
Shell :: unset git global config 
Shell :: update git repo local 
Shell :: how to move master branch to main branch 
Shell :: angular cli linux 
Shell :: bash write to file specific line 
Shell :: install drush ubuntu 
Shell :: service supervisor restart 
Shell :: ubuntu edit etc host 
Shell :: installing mailcatcher ubuntu 
Shell :: install kazam ubuntu 18.04 
Shell :: apt install antiword 
Shell :: linux how to check what gpu 
Shell :: heroku installation check 
Shell :: install xfce 
Shell :: list cron jobs for all users 
Shell :: ubuntu print path 
Shell :: git delete changes 
Shell :: How to create a new repository on the command line. 
Shell :: ubuntu install vboxguest 
Shell :: unzip bz2 file ubuntu 
Shell :: cat /etc/os-release 
Shell :: show date linux 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =