Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7882693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:20:40+00:00 2026-06-03T04:20:40+00:00

I’m looking for suggestions to file naming convention in a Git repository. The repository

  • 0

I’m looking for suggestions to file naming convention in a Git repository.

  • The repository is checked out to and committed from client machines with different OS’s and locale settings, which may not have exactly consistent letter case sensitivity and character encodings, and behaviors towards some special characters;

  • The repository has files whose file name must contain multiple complete english words for business reasons, for example, some file names must contain home_value, or home-value, or HomeValue rather than some abbreviated form where the complete English words aren’t recognizable such as h_v or h-v or HV.

So I am wondering what rules of convention should be set up for the team, to reduce potential issues. A change of convention or an effort of coercing file naming styles later in could be a pain and counter productive. So I’d like to set up as detailed convention as possible from early on. I could then make stewart scripts to automatically validate the code base.

Some initial thoughtlets:

  • some possible formatting conventions I can think of

    foo_bar # use _ as word separator
    foo-bar # use – as word separator
    FooBar # use CamelCase

  • some of the files are HTML files that will be served on web server.

  • always use ASCII characters

  • non-ASCII characters should be converted to Unicode code, for example U+12345

  • always use lower case, e.g. foo_bar but not Foo_Bar or FooBar, to avoid conflict between two files named foo_bar and Foo_Bar. The possible issue with this is that some complete English word I mentioned above are proper nouns and needs to have capitalized initial letter. If the information is lost in the file name, it will need to be stored in some other way.

  • If lowercase letter is always used, then CamelCase is not an option

  • Some complete English words can have - in it, for example some English names, so it seems the foo-bar style is not an option. The only left possibility is foo_bar?

  • If I then allow capital letter to accomodate proper nouns, then in general, a file name is

    foo_Bar_FooBar

But is it a good idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:20:41+00:00Added an answer on June 3, 2026 at 4:20 am

    The only real technical challenge is that Unicode filenames are poorly supported. They generally are non-portable and can cause some bizarre problems. Another problem is that Windows is case-insensitive and Unix-based OS’s aren’t. This means that you can create files named HomeValue and homevalue next to each other on a Mac or Linux computer, and that will cause problems when you move to Windows.

    My recommendation is to use ASCII letters, and don’t have two names that are the same except for case. As for word separation, spaces should work just fine. There’s no reason to use _ or - unless you want to serve them over HTTP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.