git push remote syntax
- From
- Diggory Hardy <lists@dhardy.name>
- Date
- Nov 7, 2016, 13:49 UTC
- Message-ID
- <1613741.x6i0st30av@localhost.localdomain>
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