Search code examples
gitgithubnaming-conventions

Is there a naming convention for git repositories?


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

  1. purchaserestservice
  2. purchase-rest-service
  3. purchase_rest_service
  4. or something else?

What's the convention? How about in GitHub? Should public repositories follow some standard?


Solution

  • I'd go for purchase-rest-service. Reasons:

    1. What is "pur chase rests ervice"? Long, concatenated words are hard to understand. I know, I'm German. "Donaudampfschifffahrtskapitänspatentausfüllungsassistentenausschreibungsstellenbewerbung."

    2. "_" is harder to type than "-"