Update aliases.md

added another example to make clear how it works.

fixes #2741
Merge pull request #2743 from cebe/patch-1

Update aliases.md
Fix detached head handling for non-committish sources, fixes #2732