80
you are viewing a single comment's thread
view the rest of the comments
[-] Traister101@lemmy.today 1 points 1 week ago

/ is used to separate the same branch in different repos. For example origin/main and remote/main. Surprising that the other stuff is legal though

[-] bamboo@lemm.ee 3 points 1 week ago

You can still freely use / in branch names. Having remote branches available as remote/branch is just a convenience, and you can delete or modify them locally. It’s common to use / in branch names, too.

[-] Traister101@lemmy.today 0 points 1 week ago

Okay? I'm well aware. I do so all the time

That's true, i didn't think about that when I wrote it.

I'm used to the world being pretty simple though, so for me that slash has always just been a visual representation of the location of the branch if that makes sense. We don't have to have a slash in the branch name, only to use it to represent where that branch is located. It could have been something git only used for presentation.

this post was submitted on 06 Dec 2024
80 points (97.6% liked)

Programming

17656 readers
78 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS