Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

error: refname refs/heads/master not found

error: refname refs/heads/HEAD not found
fatal: Branch rename failed

$ git checkout -b main 
Comment

GIT Error refname refs/heads/master not found

git fetch
git reset --hard origin/master
Comment

error: refname refs/heads/master not found

I get into this issue too. The reason is that I didn't have any commit on this 
git repository.

When I run the command git branch -M main. I get the following error message.

	error: refname refs/heads/master not found
	fatal: Branch rename failed

After I add my first commit by the following command, all things works.

	git add .
	git commit -m 'Init'
Comment

error: refname refs/heads/origin not found

try 
git push -u origin main

instead of
// git push -u origin master
Comment

error: refname refs/heads/master not found

git add .
git commit -m 'Init'
Comment

PREVIOUS NEXT
Code Example
Shell :: man vmstat 
Shell :: The zip extension must be loaded 
Shell :: shell replace plus in string 
Shell :: ssh remove file command 
Shell :: linux bash shell join path 
Shell :: get nsg of vm az 
Shell :: virtmanager network autostart 
Shell :: shell using Loops to Add Element in XML File in Powershell 
Shell :: Disable Apache in a Django Bitnami Stack 
Shell :: picoCTF file-run1 
Shell :: linux file explorer like mac 
Shell :: rails scaffold no views 
Shell :: authorized by ssh without password 
Shell :: linux stop xmrig 
Shell :: ring get the input from the user using the give command 
Shell :: format volume diskpart 
Shell :: command to delete all files ending in .js in current and subdirectories 
Shell :: drop-in 
Shell :: new branch contains old commit 
Shell :: basic config palo alto cli 
Shell :: bash "read -p" 
Shell :: ffmpeg whatsapp or telegram format 
Shell :: shell script multithreaing 
Shell :: xfce4-notes install 
Shell :: Accessing .NET components from Powershell 
Shell :: start-stop-daemon force kill sigkill 
Shell :: Keepalived source installation 
Shell :: bitnami wordpress maximum upload file size 40 mb 
Shell :: change webcam whitebalance ubuntu 
Shell :: how to update mongodb in ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =