tucson.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hypnotic_nerd@programming.dev to Programmer Humor@programming.devEnglish · 2 years ago

GitHub Desktop or Git CLI?

programming.dev

message-square
110
link
fedilink
439

GitHub Desktop or Git CLI?

programming.dev

hypnotic_nerd@programming.dev to Programmer Humor@programming.devEnglish · 2 years ago
message-square
110
link
fedilink
alert-triangle
You must log in or register to comment.
  • Miku Luna \ she/it@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    34
    arrow-down
    1
    ·
    edit-2
    2 years ago

    I don’t understand git anyway

    • fckreddit@lemmy.ml
      link
      fedilink
      arrow-up
      61
      ·
      2 years ago

      Well, you learn four commands and hope for the best.

      • Valmond@lemmy.mindoki.com
        link
        fedilink
        arrow-up
        15
        ·
        2 years ago

        fetch, reset --hard, checkout -b and cherry-pick?

        :-D

        • muix@infosec.pub
          link
          fedilink
          arrow-up
          10
          ·
          edit-2
          2 years ago

          More like clone, pull, commit, and push --force

          >:-D

          • Valmond@lemmy.mindoki.com
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            push origin head

            ^^

  • derpgon@programming.dev
    link
    fedilink
    arrow-up
    33
    arrow-down
    2
    ·
    2 years ago

    JetBrains IDEs, I don’t remember the last time I used the CLI.

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      34
      arrow-down
      1
      ·
      2 years ago

      you have forgotten the face of your father

      • QuazarOmega@lemy.lol
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        Linus Torvalds?

    • eluvatar@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 years ago

      This is the way

    • CodingCarpenter@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year 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
      5
      arrow-down
      10
      ·
      2 years 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
        14
        arrow-down
        1
        ·
        2 years 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
        10
        arrow-down
        1
        ·
        2 years 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
        ·
        2 years 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
    27
    ·
    2 years 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.

    • bellsDoSing@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      And it will find you the most answers online in case you have a git related question.

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

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

    • stepanzak@iusearchlinux.fyi
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      TIL!

      • FiskFisk33@startrek.website
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        git log --graph --oneline --all

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Also part of the Cli magic is a pretty git log tree like that:

      https://stackoverflow.com/questions/1838873/visualizing-branch-topology-in-git/34467298#34467298

      And a proper diff tool like vim:

      git config --global diff.tool vimdiff git config --global difftool.prompt false

      (Current diff could be closed with :qa. All diffs could be closed with :cq).

  • hightrix@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    2 years 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.

  • pimeys@lemmy.nauk.io
    link
    fedilink
    arrow-up
    20
    ·
    2 years ago

    Magit

    • akkajdh999@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      5 months ago

      deleted by creator

    • RePierre@feddit.ro
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      I was looking for someone to mention Magit. It just rocks!

    • haruki@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      This + org-mode are enough for me to switch to Emacs.

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    2 years ago

    Fork

    • Aatube@kbin.social
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      Any windows screenshots?

      (Fork is also an awful name in terms of searching for it btw)

      • katy ✨@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        (there’s also a couple more here: https://git-fork.com/)

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      You have my attention

      Do they have a Linux client though?

      • katy ✨@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        5
        arrow-down
        2
        ·
        2 years ago

        sadly no and i don’t think it works through wine

        but technically they have a mac client which is basically an expensive version of linux

        • Aatube@kbin.social
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          2 years ago

          Not really. It’s BSD, and even then the layout of the OS is quite far from BSD. Besides that you have a lot more technical stuff. Just use wine.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        I wish! The best Linux git gui I have found is SmartGit. I like it, but it’s just a little goofy and not free. Fork is better for its ability to very easily stage and/or stash a subset of the current changeset.

        Anyone got any suggestions? I tried git-cola and gitkraken. The former I found obtuse and limited, and the latter is not free in addition to somehow making git harder with a pretty gui.

        • Aatube@kbin.social
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Gitkraken is free as long as the repository is public, which seems like an alright compromise to me. The only problem I had with it was that it was electron. What did it make harder for you?

          • TrickDacy@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            2 years ago

            I just really detest the UI. And I have private repos I have to work with as well.

        • BaardFigur@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          deleted by creator

          • TrickDacy@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            Right and that is how I currently use it

        • floofloof@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          2 years ago

          The best ones I have found for Linux are SmartGit and Sublime Merge, but neither are free in any sense. Sublime Merge is slightly cheaper. SmartGit offers a free “hobby license” but it limits which kinds of repos you can work with.

          Gitkraken looks like it might be good but I haven’t used it.

    • BaardFigur@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      deleted by creator

    • eluvatar@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Been using it for years it’s great

    • ramenshaman@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      I hate coding on Windows, maybe I’ll check that out. (My only option is Windows for my work laptop because I need to use a few Windows-only softwares and IT says I’m not allowed to dual boot)

      • 🐍🩶🐢@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        Is running Linux off a USB drive possible? It isn’t ideal, but you can still have persistence if needed? There is also WSL, if you don’t need a GUI.

        • ramenshaman@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          After the last windows update WSL gives me a BSoD every time 😭 Pretty sure IT wouldn’t appreciate me running Ubuntu off a USB drive but that’s a good idea.

  • JonsJava@lemmy.world
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    2 years 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.

    • Feathercrown@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      1
      ·
      2 years ago

      Why are you syncing directly to prod

      • JonsJava@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        2 years ago

        I’m not? I just don’t like UIs

        • JonsJava@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Prod being on the line meant “I’m on main”.

          Yeah, I set up branch protection, but I hate the fact that some UIs are all “I know you just want to pull, but let’s push while we’re at it”.

    • KubeRoot@discuss.tchncs.de
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      If I may shill for a moment, that’s something I like about sublime merge - the buttons mostly map to git commands, and it has a nice log showing the commands it ran and their output.

    • Fades@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      2 years ago

      How about you utilize proper CICD

      • JonsJava@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        I do. I just don’t like leaving the terminal

  • muntedcrocodile@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    2
    ·
    2 years ago

    Vscode plugins?

  • infinitepcg@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    2
    ·
    2 years ago

    GitKraken!

  • BaardFigur@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    deleted by creator

    • Xanvial@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years 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

    • Piatro@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years 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.

  • amotio@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    Sublime-Merge

    • narc0tic_bird@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      I love Sublime Merge. Worth every penny.

  • Jesus_666@feddit.de
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    Fork.

    • Jocarnail@lemmy.world
      cake
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Fork is great. I just wished there was a linux version

    • Zarlin@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Fork is great!

      • syd@lemy.lol
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        TIL. Looking great but no Linux support 😐

  • akkajdh999@programming.dev
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    5 months ago

    deleted by creator

    • dukk@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      2 years 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.

  • beefsquatch@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    2 years ago

    Sublime Merge, for most items in the UI it tells you the git command it will use

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.52K users / day
  • 5.06K users / week
  • 9.98K users / month
  • 18.7K users / 6 months
  • 1 local subscriber
  • 24.2K subscribers
  • 1.48K Posts
  • 48.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org