Teamwork No.7 Git push


"Push your branch up to the remote"

git push origin my-quizzes

Getting an error -

error: src refspec my-quizzes does not match any.
error: failed to push some refs to '/home/ccuser/workspace/curriculum-a/science-quizzes'


Resolved - Me being an idiot. I forgot my-quizzes was the folder not the branch (bio-questions was the branch)


How did you do it?
I entered "git push /home/ccuser/workspace/curriculum-a/science-quizzes bio-questions" but to no avail..

git push origin bio-questions

If I recall


Oh, I was way off. Thanks!


Yes, the current working directory may not be the same as the branch name. You can use git status to see the name of the branch that you're currently working on, and use that in the git push command.