git存储库是否有一个命名约定? [英] Is there a naming convention for git repositories?

查看:88
本文介绍了git存储库是否有一个命名约定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我有一个称为购买服务的RESTful服务。我应该命名我的存储库


  1. purchaserestservice

  2. purchase-rest-service

  3. purchase_rest_service

  4. 还是别的什么?

什么是约定?在github中如何?公共回购是否应遵循某些标准?

我会为 purchase-rest-service code>。理由:


  1. 什么是追逐休息服务?长而串连的单词很难理解。我知道,我是德国人。


  2. _比 - 更难以输入



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 repos follow some standard?

解决方案

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 "-"

这篇关于git存储库是否有一个命名约定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆