One my colleagues accidentally ran git merge - and it seemed to merge the branch they were last on. Fascinating. git describe - errors out fatal: Not a valid object name -. git symbolic-ref --short - also errors out with fatal: ref - is not a symbolic ref.
It's obviously(?) impossible to search for this. Where is this documented, is this merge specific, if not where else could it be used?
Edit: our principal sw engineer pointed out https://git-scm.com/docs/git-checkout You may also specify - which is synonymous to @{-1} so I guess the same happens to git merge but a) it's not documented under git merge b) git describe or git log doesn't work with - while both work with @{-1} c) it's still not clear where else could it be used especially if it's undocumented.