Re:Idiot Proof Git
by gardenhedge on Wednesday November 09, 2022 @04:30PM
(#33538161)
When you commit you're sharing with your team and future team. I think it's fair to have a set of agreed guidelines around that. What if you wanted to put all your commit messages as "cnity did it"?
Re:Idiot Proof Git
by bacon_waffle on Wednesday November 09, 2022 @09:47PM
(#33541564)
I agree with the post you're responding to, and make a lot more commits than I share with my team. Pushing commits to a shared branch is where work is shared.
At my current employer, we used to use Perforce, and in that world you're totally right that committing (submitting in Perforce terminology, IIRC) did share changes. In that context, we developed a lot of bad patterns, losing code or holding up other people's work while a developer got their work ready to share. Transitioning to git has been super painful, due mainly to people treating git as if it's the same sort of thing as Perforce...
It's simple: I wouldn't do that. Do we need guidelines to not delete repositories too?
Re:Idiot Proof Git
by gardenhedge on Friday November 11, 2022 @03:05PM
(#33566093)
Yes of course
Code styles are one thing, what I type into my terminal is another.