I’m wondering if you use any (graphical) clients to manage your Git, and if so, what client you use.

I myself have to use git professionally across all 3 major OS-es, and I currently use Sourcetree on Windows and macOS, and the Git tools built-in into IntelliJ on Linux.

Have given MaGit a try, but just couldn’t get all the shortcuts to stick in my mind.

Interested to hear your experiences!

  • deadcatbounce@reddthat.com
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    23 minutes ago

    Off topic: day-after-day with these kinds of posts and especially the replies, I need Reddit less and less. That’s a very good thing.

  • Timberfang@pawb.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    I use VSCode and SourceGit. SourceGit is similar to Fork (which I’ve used before), but it’s FOSS and cross-platform (Windows/macOS/Linux).

  • thecoffeehobbit@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    Vscode and gitlens for routine stuff, and then just CLI when push comes to shove and I need some more advanced feature.

  • Xuntari@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 hours ago

    LazyGit and GitKraken. I try to use LazyGit as much as possible, but a few things are easier for me in GitKraken (as I’m more used to it).

  • Tenkard@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    8 hours ago

    Github desktop, despite the name it’s just a git client. Absolutely clownish that there’s no official Linux support (there’s a fork which works perfectly). I use it to interact with self-hosted gitea, codeberg and github, pretty happy with it, I’m Aldo testing git butler

  • Cratermaker@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    9 hours ago

    I made some automation in python for common git tasks and use the cli otherwise. I tried a couple like sourcetree and the built in automation for VS but they’re either slow or lack features i’d like.

    • AdamBomb@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      8
      ·
      18 hours ago

      Same, because its UX is actually really good. Years ago when I was new to git, I tried to use Sourcetree to revert a merge commit, and it would just fail. When I tried it in the CLI, it still failed, but it told me how to fix it. (I needed to specify which parent)

      That, plus it’s scriptable, plus I’m in the terminal a lot anyway. I’ll also use the IDE git client sometimes if that’s where I am at the moment.

    • killingspark@feddit.org
      link
      fedilink
      English
      arrow-up
      18
      ·
      edit-2
      22 hours ago

      The only thing I’m missing in the CLI is easy picking and choosing which change to include in a commit on a more fine grained basis than files. I sometimes have a changed file and the changes fix different issues and thus should get separate commits but with the CLI I can’t easily select the changes to be staged. At least not AFAIK.

      Edit: Richards law of posting something wrong to get fast correct answers seems to stay true, even on lemmy. Thanks for teaching me something today <3

      • The2b@lemmy.vg
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        23 hours ago

        You can via git add -i foo.bar

        I believe the only issue with that is that it can only go by hunks. If your changes are sufficiently far away, you can select them separately. But if you change one function that should be in patch a, and another function 5 lines down that should be in patch b, I think you’re screwed

        That being said, this is all from memory, so don’t quote me on it

        • Corngood@lemmy.ml
          link
          fedilink
          arrow-up
          6
          ·
          22 hours ago

          In interactive add mode you can use s to split a hunk, and e to edit it. That’s usually enough for me to split things up.

        • hallettj@leminal.space
          link
          fedilink
          English
          arrow-up
          3
          ·
          22 hours ago

          I usually use git add -p to selectively stage hunks. But in git add -i I think running the patch command does the same thing to get into patch mode.

          If patch mode shows you a hunk, and you only want some of the lines you can press s to split into smaller hunks. Then you’ll be prompted whether to add each smaller hunk separately.

          If you want to stage a change that is on the same line as a change you don’t want to stage, or on an adjacent line, then you need to use e to edit the hunk. Git stages whatever changes are left when you’re done editing. The file in the working tree on disk is unchanged.

    • pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      3 hours ago

      CLI first here too, for the same reason.

      I’m not above using an editor plugin if it’s simple and reliable and right there waiting, like VSCodium.

  • lightnsfw@reddthat.com
    link
    fedilink
    arrow-up
    5
    ·
    15 hours ago

    Is Vscode a git client?

    No one take from me though idk what I’m doing when it comes to programming stuff.

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    14
    ·
    20 hours ago

    I mostly use git from the console.

    • git with a bunch of aliases for common operations and making the log pretty.
    • gitk when I need a UI to browse the history
    • kdiff3 as mergetool
  • bignose@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    18 hours ago

    Magit is what allowed me to finally commit to switching to Git full time.

    It’s such an excellent front-end for Git that I’ve known numerous workmates learn Emacs just to use Magit.

    • lobut@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      20 hours ago

      It’s what I use when I need a bit of a UI for some things. I use the terminal mostly but Lazygit is great.

      • slacktoid@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        19 hours ago

        It just works really well. I don’t mind the terminal commands but lazygit makes using git just so much nicer

    • SinTan1729@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      19 hours ago

      I mostly use git from the cli, but when I want to use a frontend, I use lazygit. (I just find it easier to use TUI for some things like only committing some of the changed files, squashing, or fixup commits.)