this post was submitted on 13 Dec 2023
478 points (94.1% liked)

Programmer Humor

18292 readers
2572 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
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 36 points 6 months ago* (last edited 6 months ago) (2 children)

I don't understand git anyway

[–] [email protected] 69 points 6 months ago (1 children)

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

[–] [email protected] 17 points 6 months ago (2 children)

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

:-D

[–] [email protected] 13 points 6 months ago (3 children)

Nah, rebase -i, squash, fsck and reflog

[–] [email protected] 11 points 6 months ago* (last edited 6 months ago) (1 children)

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

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

[–] [email protected] 11 points 6 months ago (1 children)

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)
[–] [email protected] 10 points 6 months ago* (last edited 6 months ago) (1 children)

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

>:-D

load more comments (1 replies)
[–] [email protected] 53 points 6 months ago (1 children)

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.

[–] [email protected] 10 points 6 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.

[–] [email protected] 32 points 6 months ago (7 children)

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

[–] [email protected] 36 points 6 months ago (1 children)

you have forgotten the face of your father

[–] [email protected] 9 points 6 months ago

Linus Torvalds?

load more comments (6 replies)
[–] art 29 points 6 months ago (1 children)

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.

[–] [email protected] 6 points 6 months ago

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

[–] [email protected] 27 points 6 months ago* (last edited 6 months ago) (2 children)

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

[–] [email protected] 9 points 6 months ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] hightrix 23 points 6 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.

[–] [email protected] 22 points 6 months ago (3 children)
load more comments (3 replies)
[–] [email protected] 19 points 6 months ago (15 children)
[–] [email protected] 12 points 6 months ago (1 children)

Any windows screenshots?

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

[–] [email protected] 7 points 6 months ago

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

load more comments (14 replies)
[–] JonsJava 16 points 6 months ago (4 children)

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 9 points 6 months ago (2 children)

Why are you syncing directly to prod

load more comments (2 replies)
load more comments (3 replies)
[–] muntedcrocodile 16 points 6 months ago

Vscode plugins?

[–] [email protected] 12 points 6 months ago (1 children)
load more comments (1 replies)
[–] [email protected] 11 points 6 months ago (6 children)
load more comments (6 replies)
[–] amotio 11 points 6 months ago (1 children)
load more comments (1 replies)
[–] infinitepcg 11 points 6 months ago
[–] Fades 10 points 6 months ago (2 children)
load more comments (2 replies)
[–] Metype 10 points 6 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.

[–] [email protected] 9 points 6 months ago* (last edited 6 months ago) (2 children)

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)
[–] [email protected] 9 points 6 months ago

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

[–] lordnikon 8 points 6 months ago (5 children)
load more comments (5 replies)
[–] [email protected] 7 points 6 months ago

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

[–] [email protected] 7 points 6 months ago (6 children)
load more comments (6 replies)
[–] [email protected] 6 points 6 months ago (1 children)

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)
[–] Benaaasaaas 6 points 6 months ago

Vim Fugitive

[–] [email protected] 6 points 6 months ago* (last edited 6 months ago)

GitLens?

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

[–] Phoenix3875 6 points 6 months ago

Why are they even on the same bus?

load more comments
view more: next ›