[bug-ish] [convenience] fatal: only [12] (reference)s? expected, [12] given
- From
- mana vortex <manavortex@gmail.com>
- Date
- May 30, 2018, 08:12 UTC
- Message-ID
- <1B7D3974-AA1C-42B5-A7F5-C5A36B28C34F@gmail.com>
Hello git folks, I’m writing about something that annoys me since forever: The reference handling is not consistent between commands. For example, I do
git checkout origin master
but I do
git reset —hard origin/master
I always get it wrong the first time.
Is there a convenience option that circumvents the error?
If one argument is given, but two are expected, split the argument at the first / and retry - throw error if that isn’t valid If two arguments are given, but one is expected, concat the arguments with a /.
Is that possible already, and if not, would you care to implement it?
Thank you for your time.