re: How do you name your git branches? VIEW POST

FULL DISCUSSION
 

If I were less lazy, I'd probably reference an issue number, but I usually give my name and a description of the general task. In looking at current branches:

  ben/add-haptic-feedback
  ben/small-meta-fix
  ben/some-gardening
 

I got a little too generic at one point, reused a branch name and halted the server's code from updating (the person reporting the stall didn't know git fetch --prune … my office is a relatively recent git convert. don't judge… ).

I use a version of Ben's:

my-initials/dev2018/feature

Useful side effect: keeps little reminders for myself come time for annual self evaluation.

 
 

why your name is relevant to the feature? does someone who takes it over (in case you get sick or you take 1y off time) needs to rename it? Just my curiosity... Thanks

 

This is pretty much what I do, our agile tracking software at work (Clubhouse) gives you tags based on the issue number, which automatically connects the ticket to the branch. You end up with branches that look like this:

wuz/ch1234/story-name-from-clubhouse

They have a nice copy button, which makes it easy to check out new branches.

If I am working on a non-work project, I use:

wuz/name-of-thing-i-am-doing
code of conduct - report abuse