0

I cloned a remote branch to my local, and checked out to a new branch with the command:

git checkout -b branchname

and then I tried to push this new branch to remote and to setup upstream, but I incorrectly forgot to specify the branchname:

git push -u origin

what happens in this case? Did I cover other people's work on the remote branches?

Thanks in advance.

  • What was the output? I'm pretty sure Git won't let you overwrite remote branches without forcing. – evolutionxbox Nov 01 '18 at 22:43
  • Possible duplicate of [Default behavior of "git push" without a branch specified](https://stackoverflow.com/questions/948354/default-behavior-of-git-push-without-a-branch-specified) – phd Nov 02 '18 at 22:27
  • https://stackoverflow.com/search?q=%5Bgit%5D+push+default – phd Nov 02 '18 at 22:27

0 Answers0