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 :: s3cmd install 
Shell :: install netbeans 8.2 ubuntu 20.04 
Shell :: rmdir: failed to remove ‘’: Directory not empty 
Shell :: stop processes on port 3000 
Shell :: linux execute as user 
Shell :: pulling and running docker image 
Shell :: installing pipewire 
Shell :: git push pull asks for login everytime 
Shell :: bash print specific range of rows from a file 
Shell :: Could not create service of type FileHasher using BuildSessionServices.createFileHasher() 
Shell :: convert all files and folders in current directory into zip in linux 
Shell :: how to delete a commit in git remotely 
Shell :: dotnet clean nuget cache 
Shell :: change root password for kali 
Shell :: install screenshot linux 
Shell :: github actions sequential jobs 
Shell :: linux package path 
Shell :: linux verzeichnis löschen 
Shell :: replace substring in shell 
Shell :: linux screen run jar 
Shell :: ubuntu cmd firewall give access to port 
Shell :: run sh from terminal mac 
Shell :: git reset last commit 
Shell :: tar extract to folder 
Shell :: clean remove npm with cache 
Shell :: shell script in jenkins pipeline 
Shell :: ubuntu set current timezone asia/kolkata 
Shell :: code commit on github 
Shell :: compare local branch with remote branch 
Shell :: how to check if docker is installed 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =