5

After a month of loving git, I finally got into an irreversible git mess yesterday. Spent all night rewriting last two days of code. I feel like a real programmer 😋

Seriously though, I'm gonna take backups a lot more frequently now onwards.

Comments
  • 1
    I usually commit very often, trying to register any minimal change and avoid that kind of things.

    It happened to me that I wrote a lot of code and then the program suddenly stopped working, and I didnt realize that I haven't commit that before. I felt like shit! Try to commit every change you make.
  • 1
    From my experience a good branching model can prevent many ugly stuff when using git. Also never ever use "-f" unless you REALLY know what you are doing.
Add Comment