A possible workaround is to clone your GitHub repo and report your commits from your previous local repo
git clone https://github.com/<user>/<repo>
cd <repo>
git remote add firstrepo ../firstrepo
git fetch firstrepo
git branch -avv
git checkout -b fmaster firstrepo/master
git rebase master
git checkout master
git push
But if you don't want to re-import your local repo in a new clone, check your remote and branches:
git remote -v
git branch -avv
You git config --local -l should look like:
remote.origin.url=https://github.com/<user>/<repo>
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
Since git branch -avv shows nothing, make sure you have added and committed first something, before attempting any git push:
git config user.name <GitHub account Name>
git config user.email <GitHub account email>
git add .
git commit -m "First commit"
git push -u origin master
git push origin master. I also triedgit push -u origin master.