454
top 50 comments
sorted by: hot top controversial new old
[-] Shinji_Ikari@hexbear.net 35 points 1 year ago

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.

[-] popcar2@programming.dev 13 points 1 year ago

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.

load more comments (1 replies)
[-] idiocracy@lemmy.zip 12 points 1 year ago

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.

load more comments (10 replies)
[-] derpgon@programming.dev 34 points 1 year ago

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

[-] caseyweederman@lemmy.ca 38 points 1 year ago

you have forgotten the face of your father

[-] QuazarOmega@lemy.lol 10 points 1 year ago

Linus Torvalds?

load more comments (6 replies)
[-] criticalimpact@lemm.ee 32 points 1 year ago* (last edited 1 year ago)

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

[-] art@lemmy.world 30 points 1 year 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 7 points 1 year ago

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

[-] backhdlp@lemmy.blahaj.zone 28 points 1 year ago* (last edited 1 year ago)

I don't understand git anyway

[-] fckreddit@lemmy.ml 65 points 1 year ago

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

[-] Valmond@lemmy.mindoki.com 18 points 1 year ago

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

:-D

[-] xmunk@sh.itjust.works 13 points 1 year ago

Nah, rebase -i, squash, fsck and reflog

[-] rikudou@lemmings.world 11 points 1 year ago* (last edited 1 year ago)

Must be an interesting work if you never add, commit or push.

Edit: How the hell did you get the repo without clone?

[-] xmunk@sh.itjust.works 11 points 1 year ago

Pshaw, real programmers write out the contents of .git by hand.

(Also, it was a joke, the last two commands I listed are ones you'll ideally never need in your life)

load more comments (1 replies)
load more comments (2 replies)
[-] muix@infosec.pub 11 points 1 year ago* (last edited 1 year ago)

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

>:-D

load more comments (1 replies)
[-] traches@sh.itjust.works 53 points 1 year ago

Title text: If that doesn't fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.

[-] popcar2@programming.dev 10 points 1 year ago
  • git pull

  • git add *

  • git commit -m "Some stuff"

  • git push

And occasionally when you mess up

  • git reflog

  • git reset HEAD@{n} (where n is where you wanna roll back to)

And occasionally if you mess up so hard you give up

  • git reset --hard origin/main

And there you go. You are now a master at using git. Try not to mess up.

[-] hightrix@lemmy.world 23 points 1 year 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.

[-] cupcakezealot@lemmy.blahaj.zone 18 points 1 year ago
[-] Aatube@kbin.social 12 points 1 year ago

Any windows screenshots?

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

[-] cupcakezealot@lemmy.blahaj.zone 8 points 1 year ago

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

load more comments (14 replies)
[-] pimeys@lemmy.nauk.io 17 points 1 year ago
load more comments (3 replies)
[-] JonsJava@lemmy.world 16 points 1 year 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 9 points 1 year ago

Why are you syncing directly to prod

load more comments (2 replies)
load more comments (1 replies)
[-] muntedcrocodile@lemmy.world 15 points 1 year ago

Vscode plugins?

[-] akkajdh999@programming.dev 13 points 1 year ago
load more comments (1 replies)
[-] infinitepcg@lemmy.world 11 points 1 year ago
[-] amotio@lemmy.world 11 points 1 year ago
load more comments (1 replies)
[-] beefsquatch@programming.dev 11 points 1 year ago

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

[-] Fades@lemmy.world 10 points 1 year ago
load more comments (2 replies)
[-] lseif@sopuli.xyz 9 points 1 year ago* (last edited 1 year 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

load more comments (2 replies)
[-] Metype@lemmy.world 9 points 1 year 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.

[-] lordnikon@lemmy.world 7 points 1 year ago
load more comments (5 replies)
load more comments (6 replies)
[-] Jesus_666@feddit.de 7 points 1 year ago
load more comments (2 replies)
[-] Benaaasaaas@lemmy.world 7 points 1 year ago

Vim Fugitive

[-] Phoenix3875@lemmy.world 6 points 1 year ago

Why are they even on the same bus?

[-] xmunk@sh.itjust.works 6 points 1 year ago

Personally, GitExtensions... github desktop is a pile of turds but git CLI introduces unnecessary stress precisely when I don't want it.

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 13 Dec 2023
454 points (93.7% liked)

Programmer Humor

19804 readers
510 users here now

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

founded 2 years ago
MODERATORS