Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

main vs master in git

The main branch has already replaced all new github repos as the main branch.
You can read up on it here. There is no actual difference between main and 
master, it's just the name of the default branch.

For you git push origin master just creates a new branch called master 
(since it doesn't exist already) and pushes your current commits there.
Comment

PREVIOUS NEXT
Code Example
Shell :: Reset a remote branch to previous commit 
Shell :: git clone with folder name 
Shell :: install python 3.10 linux (multiple python versions) 
Shell :: how to install pandoc 
Shell :: unzip ubuntu 
Shell :: git update 
Shell :: windows edit file cmdf 
Shell :: firebase deploy with token 
Shell :: how toinstall npm on manjaro 
Shell :: docker ftp client 
Shell :: scp with ssh key 
Shell :: how to logout in linux kali 
Shell :: discord linux arch 
Shell :: amend commit 
Shell :: checkout remote branch 
Shell :: bash check length of variable 
Shell :: git flow hotfix 
Shell :: git clone specific branch 
Shell :: The "@angular/compiler-cli" package was not properly installed. 
Shell :: top port scan nmap 
Shell :: docker extract file from image 
Shell :: how to install deb file in kali linux 
Shell :: prettier install using npm 
Shell :: run docker as non root 
Shell :: homebrew on mac 
Shell :: ubuntu all installed services 
Shell :: git origin set branch 
Shell :: how to create bootable usb on manjaro 
Shell :: latest dart sdk version 
Shell :: curl output to stdout 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =