git difference on parameter one dash and two dashes

前端 未结 3 886
不知归路
不知归路 2020-12-03 21:04

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

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 21:48

    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.

提交回复
热议问题