How to push branch to remote?


#1

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?


#2

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


#3

Thank you! Will try!


#4

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


#5

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