News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part II) by joe8756438 on Wednesday July 20, 2022 @08:42AM (#32164929)
Learning git is not easy.

There is one thing that will almost guarantee no work is ever lost: commit. if something is commit, even if it’s not pushed it can be retrieved.

One other thing that has nothing to do with how it works, but makes all the difference in usability: write commit messages describing _why_.

To learn git is to use git, reading about it has not helped me.

Re:Things I wish everyone knew about Git (Part II) by shikoba on Wednesday July 20, 2022 @09:31AM (#32165539)
> write commit messages describing _why_.

Could you provide a concrete example? I don't understand your point.

Re:Things I wish everyone knew about Git (Part II) by joe8756438 on Wednesday July 20, 2022 @12:41PM (#32168378)
As in: "changed this property in the config _because_ it will extinguish all evil from planet earth" vs. "changed this property in the config".

I can see _what_ somebody did well enough from the code diff itself -- reading an uninterrupted stream of messages explaining _why_ in a git log is a wonderful experience.

Re:Things I wish everyone knew about Git (Part II) by shikoba on Wednesday July 20, 2022 @01:21PM (#32169054)
Thank you, I think I get your idea.