How to push branch to remote?

I am having a problem. I encountered a bug in the Git Teamwork exercise, so have not learned “push.”
Have been trying various things to push the branch up to the remote in this exercise, but so far nothing is working. Any suggestions?

git push <remote>

for example: git push origin

You can also set that remote as the default for git push by adding --set-upstream after push
You can specify which branch on the remote to push to by adding the branch name at the end.

git push --set-upstream origin master

Thank you! Will try!

And if you cloned a repo then upstream is already set and you would just
git push

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.