github-education-resources / teachers_pet

Command line tool to help teachers use GitHub in their classrooms
https://education.github.com/guide
MIT License
187 stars 74 forks source link

Bad reference when running `push_files` #82

Closed kelleydv closed 10 years ago

kelleydv commented 10 years ago

I am trying to push the second assignment of the year to my students. I am running create repos first, but when it comes time to push files, teachers_pet is trying to push to the remote of the first assignment even though I'm specifying the correct repo name. This of course fails with the "Updates were rejected because the remote contains work..." message.

Any idea what the problem is? Has anyone else successfully pushed multiple assignments?

kelleydv commented 10 years ago

I think I've narrowed down my problem. I first tried to push with the wrong name - the name of the first assignment (I didn't edit my script fully before trying to deploy the new assignment :-1: ) Now the references to those remotes are hanging around somewhere and I don't understand how to delete them!

kelleydv commented 10 years ago

Closing my own dumb issue on here again: I deleted the repo from my local machine, cloned again, and now everything is working fine. I'll note that I didn't find any of the relevant references in .git/refs/remote.

afeld commented 10 years ago

Glad I could help :-P

kelleydv commented 10 years ago

:smile: