Thread (2 messages) flat view 2 messages, 2 authors, 2016-11-07

git push remote syntax

From: Diggory Hardy <hidden>
Date: 2016-11-07 13:56:13

Dear all,

One thing I find a little frustrating about git is that the syntax needed 
differs by command. I wish the 'remote/branch' syntax was more universal:
git pull myremote/somebranch
complains about the syntax; IMO it should either pull from that branch (and 
merge if necessary) or complain instead that pulling from a different branch 
is not supported (and suggest using merge).
git push myremote/somebranch
should push there, i.e. be equivalent to
git push myremote HEAD:somebranch
These are just some comments about how I think git could be made easier to 
use. Apologies if the suggestions have already been discussed before.

Regards,

D Hardy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help