Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

error: src refspec master does not match any. git

# You are trying to add an empty repository, add something first, like a readme
touch README.md
git add README.md
git commit -m "Initial commit"
git push --set-upstream origin master
Comment

error: src refspec main does not match any

git merge --allow-unrelated-histories origin/main
Comment

error: src refspec main does not match any

"main" is the usual branch name in Github repos. In some repos, it can be master or some other name
use the following command at that time
git push origin master 
Comment

PREVIOUS NEXT
Code Example
Shell :: How to create folder and cd into it with one command 
Shell :: git log with numbers 
Shell :: change permissions on all files in all sub-directories 
Shell :: stripe installation 
Shell :: errno 2 no such file or directory less 
Shell :: list installed dotnet versions 
Shell :: install node on linux instance 
Shell :: kubectl exec 
Shell :: fc editor 
Shell :: nginx cors only one is allowed 
Shell :: eclipse in ubuntu snap 
Shell :: all folder permissions terminal 
Shell :: git shortcut 
Shell :: loading json in js 
Shell :: alpine linux /bin/sh: node: not found 
Shell :: run cron once a week 
Shell :: how to I list powershell functions 
Shell :: windows cmd schedule shutdown 
Shell :: sqlmap enumerate tables in databases 
Shell :: bun.sh setup 
Shell :: how to extract rar file in ubuntu 
Shell :: users list linux 
Shell :: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 
Shell :: how to make wsl backup 
Shell :: batch loop through folders in a directory 
Shell :: git command to change drive 
Shell :: Clear heroku redis cache 
Shell :: vim open shell in current directory 
Shell :: how to push to heroku 
Shell :: global gitignore 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =