In Git, when I am performing a commit with add, I can use
git commit -am "My commit"
When I see examples of git log or in most other cases we use
git log --online
But I do not understand when I'd use one hyphen (-) or two hyphens (--). Can anyone please explain?