rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.95k stars 540 forks source link

Trying to transfer repository from local to remote and get an error code #327

Open pshea75 opened 5 years ago

pshea75 commented 5 years ago

I'm trying to add a remote repository and then push my local repository to the local repository but I keep getting an area code. I will input the command:

git remote add origin https://github.com/pshea75/git_practice.git git push -u origin master

and then I get this error code:

error: src refspec master does not match any error: failed to push some refs to 'https://github.com/pshea/git_practice.git'

Please let me know what commands show be input instead, thank you

vineeshvs commented 4 years ago

You might have to commit once before the push step.

https://stackoverflow.com/questions/4181861/message-src-refspec-master-does-not-match-any-when-pushing-commits-in-git