Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Git change branch from branch to main

git checkout master        # to be sure you are on master branch
git push origin HEAD:main  # and then push the current branch (as master) to main
Comment

PREVIOUS NEXT
Code Example
Shell :: shell shortcuts 
Shell :: checking if a substring exists in a string bash 
Shell :: react native git error: src refspec main does not match 
Shell :: git log with numbers 
Shell :: docker run restart on boot 
Shell :: create new partion linux 
Shell :: awk count if 
Shell :: perfect git commit 
Shell :: push a local branch 
Shell :: bash delete all symlinks 
Shell :: cara uninstall di centos 7 
Shell :: copy first 10 lines of a file to another file in unix 
Shell :: clone project from specific branch 
Shell :: Write to NTFS on Mac OS 
Shell :: command to install apache 
Shell :: Run emulator without Android studio. 
Shell :: release a port in mac 
Shell :: debian give write permission 
Shell :: how do i know if a gem is installed 
Shell :: how to store float values in shell script 
Shell :: windows view processes command line 
Shell :: git add submodule 
Shell :: add an existing user account to a group 
Shell :: find application path ubuntu 
Shell :: chrome ubuntu 
Shell :: direnv 
Shell :: awk for loop 
Shell :: how to install sdkman linux command line 
Shell :: zsh: command not found: valet 
Shell :: firebase only hosting command 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =