git svn
already added and committed those files to your local repo.
Make sure git is configured with the right username and email (ie the ones of your GitHub repo):
git config --global user.name "Name"
git config --global user.email email@gmail.com
You need to add a remote to your GitHub repo and push.
cd /path/to/your/local/repo
git remote set-url origin https://username@github.com/username/reponame
git push --all
git push --tags
Note that when you create a brand new repo on GitHub, it might comes with already one commit (with one file, the README.md
).
In that case, the git push
from your local repo might be rejected, because the history of your repo isn't based on that one commit of your GitHub repo.
If that is the case (failed git push
), then:
cd /path/to/your/local/repo
git remote add origin https://username@github.com/username/reponame
git pull origin master
git push --all
git push --tags