DEV Community

Clive Da
Clive Da

Posted on

git naming conventions

theres plenty of discussion on DEV.TO about git branch naming and git commit 'commenting' but what about git repo naming ?

my repo names (and forks) are a mess with prefixes and suffixes all over the place

ive tried all sorts of variations of author, site, technology & platform but im not happy with any of them

here are some examples

  • AUTHOR-ORG-NODE-EXPRESS-PUG-GLITCH
  • GLITCH-MYSITE-ORG-NODE-EXPRESS-PUG
  • NODE-EXPRESS-PUG-MYSITE-ORG-GLITCH

but all these lock me in !

any ideas ? and any tips for prefixes and suffixes to use for forks so they dont get mixed up with my repos ?

Top comments (3)

Collapse
 
saschadev profile image
Der Sascha

We use a Bug releated number or a userstory id to create a brach. With this "convention" it is very easy so identify on what the use is working on. The best on this, this will be non userscoped.

Collapse
 
mccurcio profile image
Matt Curcio

I was talking to old timer a little ago and he suggested something very radical. What he writes notes. He has a notebook he keeps by his desk on items he needs to do or remember. I think he also talked about using codes for his git commits, for example, "worked on error #5" then wrote a small description in his notebook. I suppose you could use a .txt file inside yr git repo too.
HTH

Collapse
 
jimpriest profile image
Jim Priest

We use feature/JIRA-123-description-authorinitials-version