in git when I specify a parameter, ie
git log -n 5
what is the difference of using a parameter with one dash \"-\" as opposed to
There are alternatives for commands. You may prefer using the long version to avoid a typo :). Also the short version can be combined. Once through the command line parser, there's no difference.