Dessalines@lemmy.ml to General Programming Discussion@lemmy.ml · 1 year agoWorktrees: Git's best kept secret (and why you should use them) | Tom Upswww.tomups.comexternal-linkmessage-square8linkfedilinkarrow-up113arrow-down11
arrow-up112arrow-down1external-linkWorktrees: Git's best kept secret (and why you should use them) | Tom Upswww.tomups.comDessalines@lemmy.ml to General Programming Discussion@lemmy.ml · 1 year agomessage-square8linkfedilink
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up3·1 year agoWhat benefits does this provide over a cloned copy of the repository?
minus-squareDessalines@lemmy.mlOPlinkfedilinkarrow-up2·1 year agoNo need for another full git history copy, nor submodules and settings.
minus-squareeldavi@lemmy.mllinkfedilinkEnglisharrow-up2arrow-down1·1 year agoevery time i do this, i have to annotate the old copy somehow. i usually use a date and months later i have no clue why i made the copy.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·1 year agoYes, you should name directories descriptively. I don’t think that’s unique to repository clones.
minus-squareeldavi@lemmy.mllinkfedilinkEnglisharrow-up2arrow-down1·1 year agodefinately not since that’s the way i learned. the problem is that a directory named master-hotfix-vgpool01-05022022 is very difficult to remember why it was created if you looked at it today.
minus-squareeldavi@lemmy.mllinkfedilinkEnglisharrow-up1arrow-down1·1 year agoso what would you name it?
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1arrow-down1·1 year agoSomething that clearly communicates its purpose.
What benefits does this provide over a cloned copy of the repository?
No need for another full git history copy, nor submodules and settings.
every time i do this, i have to annotate the old copy somehow.
i usually use a date and months later i have no clue why i made the copy.
Yes, you should name directories descriptively. I don’t think that’s unique to repository clones.
definately not since that’s the way i learned.
the problem is that a directory named master-hotfix-vgpool01-05022022 is very difficult to remember why it was created if you looked at it today.
Then clearly it was poorly named.
so what would you name it?
Something that clearly communicates its purpose.