There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

beefsquatch , in GitHub Desktop or Git CLI?
@beefsquatch@programming.dev avatar

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

Shinji_Ikari , in GitHub Desktop or Git CLI?
@Shinji_Ikari@hexbear.net avatar

I really never understood why one would need a GUI for git except for visualizing branches.

I feel like I’m crazy seeing so many people using clicky buttons for tracking files. I need like 4 commands for 95% of what I do and the rest you look up.

You’re already programming! Just learn the tool!

And now there’s a github CLI tool? I hate to beat a dead horse but Microsoft pushing their extended version of an open source tool/protocol is literally the second step of their mantra.

idiocracy ,

knowing how to program doesn’t mean u need to do things the hard way.

heck the whole point of programming is to make things easier and faster.

popcar2 ,

FWIW not everyone using source control is a programmer. I’ve seen artists in game dev using GUI tools to pull new changes and push their assets.

Shinji_Ikari ,
@Shinji_Ikari@hexbear.net avatar

That’s fair, there’s plenty of uses for source control.

I was speaking from a programming context though, as this is a programming community.

hubobes ,

Maybe not a GUI but using a TUI (lazygit) I am certain that I can do everything faster than you could ever do using the CLI. Tbf if a GUI Tool had the same shortcuts it would also be faster.

coloredgrayscale ,

Checking the diff before commit, solve merge conflicts

Also if it’s well integrated into the IDE it feels less like using a separate tool. For 95% of what I do the ide/gui feels better (fetch, pull, push, commit, checkout, merge). Usually just 2-4 clicks and no need to type the branch name (ticket number and then some)

For Reflog, reset I use the terminal.

If I had to start github desktop or another seperate gui I would use the terminal that’s integrated into the IDE.

sloppy_diffuser ,

I use LazyGit on the CLI for a “GUI-like” experience. I find it helps me make smaller more meaningful commits. If I’m working on a feature that enhances or fixes other modules in my repo to support, its trivial when done to make multiple clean commits out of the one feature that isolates the changes in functionality to individual commits instead of one medium commit.

On a large enough repo (e.g., monorepo), its a pain to do using git commands.

OpenPassageways ,

I primarily use GitHub CLI to interact with the GitHub API, not Git. I don’t really see it as an extension of the Git CLI, which I use much more frequently. Everything you can do with it can also be done through their REST API.

I use it for things that aren’t really git features, like:

Syncing repository admin, pull request, and branch control settings across multiple repositories

Checking the status of self-hosted actions runners

Creating pull requests, auto-approving them

Shinji_Ikari ,
@Shinji_Ikari@hexbear.net avatar

Thanks for the explanation, that does sound useful.

firelizzard ,
@firelizzard@programming.dev avatar

Do you use the command line for everything? Do you edit with vim, view diffs with git diff, browse the web with links or lynx?

GUIs are useful tools. I’m happy with VSCode’s git integration. It’s just what I need for basic stuff like staging files and committing. I use the CLI whenever I want to do something like rebasing because I can type that command faster than I can figure out the GUI, but it would be stupid to artificially force myself to use the CLI for everything because of some kind of principal.

Shinji_Ikari ,
@Shinji_Ikari@hexbear.net avatar

Yeah I actually just prefer the command line, I’ve never had to force myself to use it. I even tried using VSC for a bit recently but i couldn’t get myself to like it. I just use nvim with some plugins in a tmux session now and its productive as hell.

Of course I don’t browse the web with the command line. For merging branches, I always merge main into the working branch first, check conflict files, and go through the file finding the diffs and resolving them. I’ve used merge tools before that were sorta nice but I had my own issues with them.

Maybe it’s the type of programming I do. I don’t do any web stuff, so file count is down. For larger code bases I keep a non editor terminal up and will grep -re for word/phrase searching, find to look for specific files, etc. I’ll occasionally use an IDE, typically eclipse based because embedded, but I don’t find myself missing the features they add.

firelizzard ,
@firelizzard@programming.dev avatar

Of course I don’t browse the web with the command line.

That’s my point. Browsing the web with a command line tool is obnoxious - you use a GUI for tasks that you find easier/more pleasant to do with a GUI. The difference is where that line is. When I’m reviewing what work I’ve done and checking through my code for debugging statements and other cruft I don’t want to push, I prefer to have a nice tree view of my change set where I can click on an item, see what I’ve changed, select lines and stage them, select other lines and revert them, etc. I could do all of that with command line tools (though not that many have mouse support) but I already know how to do exactly what I want with VSC so why would I use anything else?

You’re already programming! Just learn the tool!

If someone is incapable of learning the tool, that’s an issue if they’re a developer. But your statement implies that everyone should use the CLI for everything. My point is that it’s a matter of preference. The CLI is not superior and GUIs aren’t superior. They’re both just tools and if you can get your job done quickly and efficiently, that’s all that should matter.

Derp ,

The CLI is scriptable/automatable and unambiguous when sharing instructions with coworkers. Both of these things make it very useful to know the commands. I do agree that it helps in some situations to visualize what is going on with a GUI/TUI though (neogit for nvim or magit for emacs are great if anyone is wondering), it can make things clearer at a glance.

firelizzard ,
@firelizzard@programming.dev avatar

I agree that it is a very useful skill to know how to use the CLI. I agree that every senior developer should know how and every junior should be capable of learning. I vehemently disagree that developers should use the CLI as their regular means of interacting with Git if that is not their preference.

comrade_pibb , in GitHub Desktop or Git CLI?
@comrade_pibb@hexbear.net avatar

sublime merge

space_comrade , in GitHub Desktop or Git CLI?

Gitgui is pretty great too if you need a bit of interactivity. It’s bare bones and no bullshit but can still do like 90% of what all the other fancy tools can do.

Juice , in GitHub Desktop or Git CLI?
@Juice@hexbear.net avatar

Uh how do i get GH cli to work on Linux? I tried pushing a project and it just asks for a password, and PW support is deprecated

aBundleOfFerrets ,

key identification

Gambled23 ,

Use ssh authentication instead

stepanzak ,

I’m not sure about the exact commands, but you do something like gh auth login to authenticate the CLI and then something like gh ssh setup to change ssh’s config file to authorize using the GH CLI.

Juice ,
@Juice@hexbear.net avatar

I’ll try that, thanks

usa_suxxx ,
@usa_suxxx@hexbear.net avatar
Juice ,
@Juice@hexbear.net avatar

No luck, i tried that and https login and it still asks for a PW when I push

usa_suxxx ,
@usa_suxxx@hexbear.net avatar

HTTPS

git remote add origin https://github.com/user/repo.git

SSH

git remote add origin [email protected]:user/repo.git

Did you use the correct syntax for SSH?

BaardFigur , in GitHub Desktop or Git CLI?

deleted_by_author

  • Loading...
  • Xanvial ,

    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 ,

    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.

    JonsJava , in GitHub Desktop or Git CLI?
    @JonsJava@lemmy.world avatar

    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 ,

    Why are you syncing directly to prod

    JonsJava ,
    @JonsJava@lemmy.world avatar

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

    JonsJava ,
    @JonsJava@lemmy.world avatar

    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”.

    Fades ,

    How about you utilize proper CICD

    JonsJava ,
    @JonsJava@lemmy.world avatar

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

    kuberoot ,

    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.

    criticalimpact , in GitHub Desktop or Git CLI?

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

    stepanzak ,

    TIL!

    FiskFisk33 ,

    git log --graph --oneline --all

    hakunawazo ,

    Also part of the Cli magic is a pretty git log tree like that:
    https://lemmy.world/pictrs/image/3302d15a-1370-4f02-bc0d-5ec00c0c20f6.png
    stackoverflow.com/questions/1838873/…/34467298#34…

    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).

    anzo , in Release notes of an open source app. Someone is pretty mad at Canonical for Snap

    This post title is misleading. The developer was working with Snap until Canonical didn’t allowed it anymore. He’s pissed with the policy enforcement which is strictly speaking commercial and as bad as Apple’s afaik…

    suy OP ,

    Sorry, could you clarify what you mean? I don’t see the difference. Isn’t the author complaining about Canonical for the policy enforcement?

    anzo ,

    Canonical has been taking bad decisions for quite some time now, and this developer was trying to reach Ubuntu users even while probably knowing these. Which makes sense, of course. The point being that this dev’s disappointment seems quite specific in these notes (against Snap), and imho he might work again towards shipping their app through Snap if he was allowed to. My comment compares Canonical to Apple, to give some context of where Canonical is at so many other idiosyncrasies (for example, I also heard other bad stuff about their H.R., in particular a way too lengthy hiring process.)

    lemmesay , in Manager: This task only takes 30 minutes. Why did it take you the whole day?
    @lemmesay@discuss.tchncs.de avatar

    [conventional commits] (www.conventionalcommits.org/en/v1.0.0/) will save you.
    or maybe commitizen if you’d like not to write them by hand.
    and maybe commit and tag version, which will create changelogs for you of you follow semver

    eluvatar , in GitHub Desktop or Git CLI?

    I only use it to clone projects via the Open in GitHub desktop link.

    vsh , in GitHub Desktop or Git CLI?
    @vsh@lemm.ee avatar

    GitHub desktop for life

    tahoe ,

    Yup! Been using it for years, it looks nice, has a good UI and works well. I’ll use the CLI if I need to but 99% of the time Desktop is the better choice (for me).

    cupcakezealot , in GitHub Desktop or Git CLI?
    @cupcakezealot@lemmy.blahaj.zone avatar
    caseyweederman ,

    You have my attention

    Do they have a Linux client though?

    cupcakezealot ,
    @cupcakezealot@lemmy.blahaj.zone avatar

    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 ,
    @Aatube@kbin.social avatar

    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 ,

    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 ,
    @Aatube@kbin.social avatar

    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 ,

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

    BaardFigur ,

    deleted_by_author

  • Loading...
  • TrickDacy ,

    Right and that is how I currently use it

    floofloof , (edited )

    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.

    eluvatar ,

    Been using it for years it’s great

    ramenshaman ,

    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)

    jadedwench ,

    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 ,

    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.

    Aatube ,
    @Aatube@kbin.social avatar

    Any windows screenshots?

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

    cupcakezealot ,
    @cupcakezealot@lemmy.blahaj.zone avatar
    LemmyIsFantastic , in Release notes of an open source app. Someone is pretty mad at Canonical for Snap

    Linux: easier to use than Windows🤣

    And commiting definitely isn’t one of the biggest pains in the ass you could wish on yourself.

    pHr34kY ,

    Windows doesn’t even have a software repo.

    As a worst-case scenario, AFTL could just make you download it from the website and it would be exactly as bad as Windows UX.

    LemmyIsFantastic ,
    Bo7a ,

    phr34ky: Windows doesn’t have a software repo

    you: Here is a non-windows software repo

    Are you drunk?

    offspec ,

    Winget would have been a better one here

    Rin ,

    I use it but it’s not official. Linux distros install their own package managers.

    LemmyIsFantastic , in GitHub Desktop or Git CLI?

    Who the fuck codes and is such a terrible coder they are using shitty GitHub desktop?

    Stumblinbear ,
    @Stumblinbear@pawb.social avatar

    You can be a perfectly good dev and not enjoy working in the cli, especially when there are good enough alternatives

    jbk ,

    Beginners, probably? I agree it sucks tho, bundling a whole ass browser just for some fancy semi-automated git executions

    Itd4n ,

    ass browser

    hehe.

    calcopiritus ,

    GitHub desktop is the first thing I recommend whenever someone ducks up their local repo by using eclipse’s git integration.

    It’s so easy even an eclipse user can solve their issue by clicking a simple “sync” button. They don’t need to even know how git works.

    curiousaur ,

    That’s literally the problem being talked about. You need to know how git works to avoid these kinds of problems.

    Feathercrown ,

    Why you haff to be mad its only preference

    youtu.be/xzpndHtdl9A?si=TNH0CnrAXrrUM3ae

    hightrix , (edited )

    Right here, brother.

    I use the right tool for the job, always. If all I need is to push a branch, then I’d rather use a UI that quickly shows me the changes in a nice diff layout. If I’m doing a pull request review and want to run it locally, I select the branch, pull, and go.

    That said, when there are conflicts or tricky merges, or I want to squash a bunch of commits, anything like that, I’ll use the CLI.

    It’s not about being above GitHub desktop or being an enlightened CLI user. It is about using the tool that is needed.

    I’ve only been writing and releasing software for 15 years, what do I know.

    That said, use whatever workflow fits you best! If that’s your hands never leaving the keyboard, rock on! If you instead write code like you’re playing an FPS, enjoy! We all do this because we like it, right? 😊

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines