First, do a:
git remote rm origin
then
git remote add origin https://github.com/your_user/your_app.git
and voila! Worked for me!
or
- Create a directory to contain the project.
- Go into the new directory.
- Type git init.
- Write some code.
- Type git adds to add the files (see the typical use page).
- Type git commit.
and then
git remote rm origin
git remote add origin https://github.com/your_user/your_app.git