In Git, when I am performing a commit with add, I can use
git commit -am "My commit"
git log --online
There is no big difference between
--. It is just a convention in unix to use:
-when the option is one letter. In this case you can combine then:
-amis equivalent to
--when the option is a word.
--without a word is used to separate options from arguments, that way you can use arguments starting with hyphen without having them interpreted as an option
Some options have the two forms (one letter or one word), some have only one of the two forms. Check the help of each command to find it.
git commit -am "My commit" # is equivalent to git commit --all --message "My commit"