We all have been there… For the beginner it’s easy to mess things up. What are your horror stories with Git?

Link to xkcd

  • whats_all_this_then@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago
    1. On a college project, a friend was working on some changes on a branch which I proceeded to merge into my working branch. Visual Studio asked to stash, I said yes, his changes replaced mine, I panicked, raged, then redid the whole thing because I had no idea what a f***ing stash is.

    2. On our final project, my friend and I had separate branches we were working on and since we both thought git was magic, we figured we’d just merge our changes the day we were supposed to submit. So naturally we had a merge conflict on a single file that he had since been restored (by re-commiting the old version, not git restore) which meant we had to spend that morning frantically recommitting? rebasing? (still not sure) the next 92 commits (I just checked the repo) and hoping we didn’t break anything in the process.

    3. There was that time at my job when I accidentally pushed some stuff I REALLY shouldn’t have only to realize I had no force push permissions on a gitlab repo I created because it was under a group owned by the org. That one was there for months before I finally asked someone with the permissions to sort out (and they didn’t forget to do it).