MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ericheese@lemmy.zip to Programmer Humor@lemmy.ml · 2 days ago

When you screw up git

lemmy.ml

message-square
15
fedilink
280

When you screw up git

lemmy.ml

ericheese@lemmy.zip to Programmer Humor@lemmy.ml · 2 days ago
message-square
15
fedilink
alert-triangle
You must log in or register to comment.
  • DonutsRMeh@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    8 hours ago

    I thought it was just me who has a hard time with git. I feel better now.

  • rulray@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    22
    ·
    2 days ago

    https://ohshitgit.com/

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      You just helped me so fucking much with this! I’m writing a lecture on exactly this and my own personal experience is alright, but this is even better. Thank you!

      • rulray@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        Happy to help, this web has saved me from many fuck ups though the years and everyone should know about it

    • eldavi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      i could have used this 10 years ago; but i guess it’s better late than never. lol

  • polite_cat@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    lazygit ftw

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    Use a rebase.

    • chaospatterns@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      Rebase still means you have to resolve conflicts, but it can be worse because you may have to resolve conflicts across multiple commits that you’re rebasing on top of a conflict.

      • SavinDWhales@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        2 days ago

        Do you know our Lord and Savior rerere?

        (Though I rather squash most of the times)

        • bungle_in_the_jungle@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          2 days ago

          Damn, you know… Over 15 years as a dev using git and understanding it fairly well and I’m still learning about new, handy things.

      • ChaosMonkey@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 days ago

        In my experience this can be beneficial when committing and rebasing small and distinct changes.

        • GissaMittJobb@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Agreed. If your commits are reasonably structured, rebasing is far more helpful.

          Although these days I usually opt for one ball-of-mud commit while developing the code, which is always fairly trivial to rebase - only one commit, can’t have follow-up issues - and then I redo the commit structure from scratch as a part of preparing the code for the benefit of the reviewer.

  • BlueÆther@no.lastname.nz
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    2 days ago

    Yep, Ive hat that one.

    • manxu@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Sometimes it happens to me and git is as cantankerous with me as Linus is to a kernel developer that irked him.

  • not_woody_shaw@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    2 days ago

    AI tools are actually really helpful with this kind of stuff. Not with actually resolving the conflict, but with setting things up so that you can see and reason about it.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 228 users / day
  • 787 users / week
  • 2.32K users / month
  • 5.76K users / 6 months
  • 1 local subscriber
  • 38.7K subscribers
  • 551 Posts
  • 2.04K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org