• CodingCarpenter@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      I was looking for this comment. PHP storm and git are like best friends. I very very rarely need to resort to the CLI and generally that’s for hard resetting after I screw something up

    • expr@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      8
      ·
      9 months ago

      Good luck doing anything remotely complicated/useful in git with an IDE. You get a small fraction of what git can do with a tool that allows absolutely 0 scripting and automation.

      • calcopiritus@lemmy.world
        link
        fedilink
        arrow-up
        13
        arrow-down
        1
        ·
        9 months ago

        IDE git is less powerful than CLI git. However I’m pretty confident that most people use more features of git by using a GUI.

        CLI feature discoverability is pretty awful, you have to go out of your way and type git help to learn new commands.

        With a GUI though, all the buttons are there, you just have to click a new button that you’ve been seeing for a while and the GUI will guide you how to use it.

      • derpgon@programming.dev
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        9 months ago

        It sounds like you don’t speak from experience. I have all the automation I need. It supports git hooks on top of IDE-only features like code checking.

        If I have to fire up my CLI for some mass history rewriting (like changing an author for every commit), or when the repo breaks - so be it. But by not using the CLI I save my fingers and sanity, because committing a bunch of files is several click away with little to no room for error.

        I can rebase, patch, drop, rename, merge, revert, cherry pick, and solve conflicts with a click of a button rather than remembering all the commands and whatnot.

      • GBU_28@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        9 months ago

        I use the cli, but my main goal is to never have to do anything remotely complicated with git. Does it happen sometimes? Of course.

  • arthurpizza@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    9 months ago

    Learning git will give you the tools to work on projects on any git platform. It doesn’t matter if I’m in Forgejo, Gitlab, or Github.

  • criticalimpact@lemm.ee
    link
    fedilink
    English
    arrow-up
    24
    ·
    edit-2
    9 months ago

    CLI
    Though I will admit it took me a while to get there
    git add -i is where the true magic begins

  • hightrix@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    9 months ago

    GitHub desktop Stan here. Been a software engineer for over a decade and still love my UI tools. GitHub desktop is good enough 99% of the time.

  • JonsJava@lemmy.world
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    9 months ago

    I’d love to like the desktop app, but I just don’t understand what it’s doing under the hood when I click a button. When I click an icon, is it syncing my changes up as it pulls down, it just pulling down? I guess point and click is more scary to me when prod is on the line.

  • Metype @lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    9 months ago

    I’d use Desktop if it worked, unfortunately recently it decided that I don’t have read/write access to a repo I’m working on. Works fine in git CLI so idk what the problem there is.

    • dukk@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      Freaking love TUIs, it’s like they took the convenience of a GUI and the efficiency of the CLI and merged them. As a Neovim and Lazygit user myself it’s amazing what I can accomplish in but a few keypresses.

    • Piatro@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      I think for most people it’s whatever you got used to first. I agree the hatred the GUIs get is overblown. I would always recommend people learn the command line but if you want to use a GUI, go for it, doesn’t affect me unless your commits are bad, in which case the CLI wouldn’t have helped anyway.

    • Xanvial@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      This is what I currently use, although I don’t really like the branch name color in last few versions, so kinda keep using the old version

  • lseif@sopuli.xyz
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    9 months ago

    using LazyGit in tmux has changed my workflow.

    instead of: git add . git commit -m 'foo' fg

    i just: g ac foo q

    and it displays everything neatly

    Edit: apparently greater/less than symbols dont render properly on lemmy. so imagine a few (CR)'s and (C-b)'s sprinkled in

    • alphabetsheep@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      Are you able to fall back to normal git commands if you don’t know the shortcuts? This sounds awesome until I can’t remember the syntax to do something I don’t do everyday.

      • lseif@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        you can run shell commands with :, and there may be a nicer way for git-specific commands which i dont know about.

        each ‘pane’ (such as ‘changed/staged files’, ‘commit log’, etc) has its own keybinds, which you can see with ?