Currently, the instructions for a new project mimic that of GitHub:

push origin master

That's actually wrong. I do not know of any use case where you don't really mean:

push --set-upstream origin master

or the shorter version:

push -u origin master

Not setting the upstream just makes pushing later harder. Let's update the docs to have people set upstream by default so fewer weird things happen to them later.

Comments

damien tournoud’s picture

--set-upstream appeared only in Git 1.7.0.9.

I'm not sure if there is an alternative other then editing the .git file manually in previous Git versions.

eliza411’s picture

Assigned: Unassigned » eliza411

I'll definitely update documentation about this, but I'm not sure about the instructions as the command is so new.

eliza411’s picture

eliza411’s picture

Status: Active » Closed (duplicate)

Marking duplicate