512
top 50 comments
sorted by: hot top controversial new old
[-] backhdlp 39 points 9 months ago* (last edited 9 months ago)

I don't understand git anyway

[-] fckreddit@lemmy.ml 69 points 9 months ago

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

[-] traches@sh.itjust.works 52 points 9 months 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 9 months 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.

[-] derpgon@programming.dev 34 points 9 months ago

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

[-] caseyweederman@lemmy.ca 39 points 9 months ago

you have forgotten the face of your father

[-] QuazarOmega@lemy.lol 10 points 9 months ago

Linus Torvalds?

load more comments (6 replies)
[-] art@lemmy.world 29 points 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.

[-] bellsDoSing@lemm.ee 6 points 9 months ago

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

[-] criticalimpact@lemm.ee 28 points 9 months ago* (last edited 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

[-] pimeys@lemmy.nauk.io 23 points 9 months ago
load more comments (3 replies)
[-] hightrix@lemmy.world 23 points 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.

[-] cupcakezealot 21 points 9 months ago
[-] Aatube@kbin.social 12 points 9 months ago

Any windows screenshots?

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

[-] cupcakezealot 7 points 9 months ago

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

[-] caseyweederman@lemmy.ca 5 points 9 months ago

You have my attention

Do they have a Linux client though?

[-] cupcakezealot 5 points 9 months 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

load more comments (1 replies)
load more comments (6 replies)
load more comments (5 replies)
[-] JonsJava@lemmy.world 17 points 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.

[-] Feathercrown@lemmy.world 10 points 9 months ago

Why are you syncing directly to prod

load more comments (2 replies)
load more comments (3 replies)
[-] infinitepcg@lemmy.world 14 points 9 months ago
[-] akkajdh999@programming.dev 13 points 9 months ago
load more comments (1 replies)
[-] Jesus_666@feddit.de 12 points 9 months ago
[-] Jocarnail@lemmy.world 5 points 9 months ago

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

load more comments (3 replies)
[-] BaardFigur@lemmy.world 11 points 9 months ago

Another gui client, such as Git Fork. Much easier to fine tune what I commit, and see commit history, with a gui client. Certain things are better to do in the command line, but I really don't get why so many people hate gui clients

load more comments (2 replies)
[-] amotio@lemmy.world 11 points 9 months ago
load more comments (1 replies)
[-] lowleveldata@programming.dev 11 points 9 months ago

Why am I not allowed to login to 2 GitHub remote at the same time? Answer me Microsoft

[-] Fades@lemmy.world 10 points 9 months ago
load more comments (2 replies)
[-] beefsquatch@programming.dev 10 points 9 months ago

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

[-] lseif@sopuli.xyz 9 points 9 months ago* (last edited 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

load more comments (2 replies)
[-] smeg@feddit.uk 9 points 9 months ago

I feel those captions are the wrong way round

[-] xmunk@sh.itjust.works 10 points 9 months ago

There are much better git UIs out there.

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

[-] TheFerrango@lemmy.basedcount.com 8 points 9 months ago
load more comments (6 replies)
[-] lordnikon@lemmy.world 7 points 9 months ago
load more comments (5 replies)
[-] pastelmind@programming.dev 6 points 9 months ago

Fork is much better than GitHub Desktop, you can use it without paying indefinitely

[-] Benaaasaaas@lemmy.world 6 points 9 months ago

Vim Fugitive

[-] Phoenix3875@lemmy.world 6 points 9 months ago

Why are they even on the same bus?

[-] iAvicenna@lemmy.world 6 points 9 months ago

CLI because linux

[-] xmunk@sh.itjust.works 6 points 9 months ago

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

[-] SketchySeaBeast@lemmy.ca 5 points 9 months ago

Yup. I don't care if my workflow is suboptimally slow, I can easily see exactly I'm doing with git extensions.

[-] CmdrKeen@lemmy.today 6 points 9 months ago* (last edited 9 months ago)

GitLens?

GitHub Desktop is literally "Baby's first git GUI".

[-] marcos@lemmy.world 5 points 9 months ago

For something with such an horrible interface, it's amazing how often people that create a new interface for it manage to make it worse.

[-] MangoPenguin 5 points 9 months ago

I really like Sourcetree, been using that for a long time.

load more comments (3 replies)
load more comments
view more: next ›
this post was submitted on 13 Dec 2023
512 points (100.0% liked)

Programmer Humor

19187 readers
966 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 1 year ago
MODERATORS