Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

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

purchaserestservice

purchase-rest-service

purchase_rest_service

or something else?

What's the convention? How about in github? Should public repos follow some standard?

1 Answer

0 votes
by (50.2k points)

There are two ways of naming 

1. Lowercase-with-hyphens

2. Lowercase_with_underscores 

I would recommend you to use lowercase-with-hyphens which is widely used and it is easy to understand rather than the rest method and ‘_’ is somewhat hard to give compared to hyphens.

Better to use this for your git repositories also has the most developers use the same way for naming their git repositories.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...