• LemoineFairclough@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    14 hours ago

    Doesn’t git status tell you what to do?

    use “git add <file>…” to mark resolution

    use “git commit” to conclude merge

    I always use git status to check what is appropriate before doing anything else, since the right thing to do can sometimes be different, like after using git rebase when a break command was used vs when a squash command resulted in a conflict.

    • Oinks@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      12 hours ago

      To be fair that’s not the entire story, since you need to actually resolve the conflicts first, which is slightly scary since your worktree will be broken while you do it and your Linter will be shouting at you.

      You may also want a dedicated merge tool that warns you before accidentally commiting a conflict and creating a broken commit.

      Oh and non trivial resolutions may or may not create an evil merge which may or may not be desirable depending on which subset of git automation features you use.

      Using git status often is definitely good advice though.