Is there a naming convention for git repositories?

前端 未结 6 631
無奈伤痛
無奈伤痛 2021-01-29 17:23

For example, I have a RESTful service called Purchase Service. Should I name my repository:

  1. purchaserestservice
  2. purchase-rest-service
6条回答
  •  长发绾君心
    2021-01-29 17:49

    lowercase-with-hyphens is the style I most often see on GitHub.*

    lowercase_with_underscores is probably the second most popular style I see.

    The former is my preference because it saves keystrokes.

    * Anecdotal; I haven't collected any data.

提交回复
热议问题