12
ookami
341d

I lost a week's worth of work due a git conflict, please kill me now.

Comments
  • 1
    That sucks majorly. I would suggest checking in your work frequently - so that you don't go off in some different direction from development. It's happened to me before - not with git but just working on shared files with a bunch of other dudes.
  • 2
    how did it happen?
  • 1
    @thebiochemic source tree was in the middle of "reconstructing" the project or whatever it means. I thought: " I'm gonna stop it and commit for the day", but for whatever reason it resettled the project to a week's ago state. I forgot to commit too many days in a row (ADHD is a btch) and the rest is history.
  • 2
    @ookami okay, i already suspected something like that.
    As hard as it sounds, but that one's on you.
  • 1
    @thebiochemic yeah I know. My ignorance played me.
  • 1
    @ookami hey, see it as a learning experience. Next time you'll remember to commit properly (hopefully).
  • 2
    as long as you have commited any earlier useful state, check your reflog.
  • 1
    Also check your text editor's cache
  • 2
    Don't know how a commit operation can cause any conflict if no pull is involved...
  • 0
    @ookami Are you using a jetbrains ide? They have a local history. Saved me a couple of times so far..
  • 0
    @SuspiciousBug does xcode have one too? Else no :(
  • 2
    In fact, a commit can *never* cause a conflict.
  • 1
    So firsts it's a conflicts fault (just about impossible). Then it's basically ADHD.
    Look I don't have it so I can't fully understand it but it sounds a bit like an excuse for a simple fuckup to me. You don't need to commit every day however structured habits often do help people with ADHD.

    If you can write code and can test the code then you can also commit the code. As soon as you have a working piece of code or finished unit or work you commit. Perhaps it helps if you can only test remotely so you have to commit and push your feature branch in order to see if it works.

    Anyway even with a condition it should not be that hard. Stop blaming things, start owning and adapting.
Add Comment