First, I created a repository on github that is obviously empty. Then I initiated a git bash terminal in my working directory. Once I do that, I'm using the following code to push my files to the github repository:
git init
git add .
git commit -m "my commit"
git remote set-url origin git@github.com:username/repo.git
git push origin master
When I run git push origin master
, I get the following error:
error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:/madsthaks/AdTrackingFraudDetection.git'
I'm not very comfortable with git so I'm having a bit of trouble with this. Any help would be much appreciated.