Teamwork No.7 Git push


#1

"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'

WHY?!

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


#2

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


#3
git push origin bio-questions

If I recall


#4

Oh, I was way off. Thanks!


#5

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.