programmer_humor

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

skyline, in Rust's static linter is called "Clippy" for a reason.
@skyline@programming.dev avatar

There is no way.

baseless_discourse, in Rust's static linter is called "Clippy" for a reason.

Every monad is a monoid in the category of endofunctors, it is literally the definition of monad. But what do you expect from clippy…

Pacmanlives, (edited ) in Manager: This task only takes 30 minutes. Why did it take you the whole day?

git commit -m “changed somethings “

git push origin master

jelloeater85,
@jelloeater85@lemmy.world avatar

Do you always have to do origin master? I’ve seen it where sometimes just git push works and other times not.

Meowoem,

I think it depends what branch your local version of the repo is set to. If you’re already in master then it’ll push there, if you’re in a testing branch then you can push it straight to master instead by telling it to

jelloeater85,
@jelloeater85@lemmy.world avatar

I just meant it not auto creating a new matching named branch.

zcoyle,

where it Just Works, the branch is set up to track a remote branch

git-scm.com/book/…/Git-Branching-Remote-Branches

Valmond,

push origin your/branch

Pushes, you guessed it, your/branch!

Head is usually your checked out working branch if you’re not in a headless state, right?

sloppy_diffuser,
adrian783,

uh in any actual company you almost never push to origin master. so I think it’s a joke.

Valmond, (edited )

Depends on the configuration right?

You can work on your branch and then push that to integration for example.

I mean you’re not working on your local master/main branch right?

MajorHavoc,

Not with that attitude! /s

jelloeater85,
@jelloeater85@lemmy.world avatar

Force push Fridays!

TheUncannyObserver,

That’s part of the joke, I think. If it’s a repo more than just you use, you would almost never push directly to the main branch.

MajorHavoc,

You forgot this –force flag.

Valmond,

I’m too lazy, I use -f

paul, in Manager: This task only takes 30 minutes. Why did it take you the whole day?

do git commit -v and then just summarize the diff you have in your editor in a human readable form.

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

reminds me of what youtube was doing to firefox users for awhile.

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

git commit -m “break codec sync if UA = firefox/gecko”

KairuByte, in 1 follower on GitHub = 1000 followers on other platforms 😅
@KairuByte@lemmy.dbzer0.com avatar

Who follows users on GitHub? Repos, branches, issues, PRs, sure. But users?

Daxtron2,

I follow TodePond because they have funny repos and star weird stuff.

jasory,

Some people (like myself and other scientists/mathematicians), write software for specific fields so if you follow them you find it out what work they are putting out, and issues they find in other software etc.

firelizzard,
@firelizzard@programming.dev avatar

I have 13 followers on GitHub. A few are friends from college, the rest I have absolutely no clue why.

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

Good on them. Snap is a plague.

pkill,

Why are they even still pushing that nonsense when flatpak at least somewhat gets closer to getting bwrap implemented right?

hunger,
@hunger@programming.dev avatar

To be fair: snaps can work for all kinds of things all over the stack from the kernel to individual applications, while flatpak just does applications. Canonical is building a lot around those abilities to handle lower level things, so I guess it makes sense for them.

IMHO flatpak does the applications better and more reliably and those are what I personally care for, so I personally stay away from snaps.

pkill,

Fair point. For instance one thing that sucks about flatpaks is that you can’t torsocks them

Dirk,
@Dirk@lemmy.ml avatar

Why are they even still pushing that nonsense

It’s a for-profit corporation. They only have one goal.

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

What is AFTL? Probably not “Anterior talofibular ligament” as the internet told me

roguetrick,

What's easier to understand: ankle anatomy or Ubuntu publishing.

Teon,
@Teon@kbin.social avatar

Ankle!

lvxferre,
@lvxferre@lemmy.ml avatar

Android File Transfer for Linux. Here’s the release note from the OP.

suy,

Thanks. I should have linked to that myself, perhaps.

pimeys, in GitHub Desktop or Git CLI?

Magit

akkajdh999,

fugitive

RePierre,

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

h_a_r_u_k_i,
@h_a_r_u_k_i@programming.dev avatar

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

backhdlp, (edited ) in GitHub Desktop or Git CLI?
@backhdlp@lemmy.blahaj.zone avatar

I don’t understand git anyway

fckreddit,

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

Valmond,

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

:-D

muix, (edited )

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

>:-D

Valmond,

push origin head

^^

xmunk,

Nah, rebase -i, squash, fsck and reflog

Valmond,

reflog saved my life once after a stupid misshap.

All rebase are belong to us (onto, rebase, and ofc interactive) but what’s fsck (I don’t squash personally)?

xmunk,

Fsck is File System Check - realistically you should never need to use it.

rikudou, (edited )
@rikudou@lemmings.world avatar

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

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

xmunk,

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)

overcast5348,

I was scared of reflog too. Had to use it for the first time recently after I accidentally’d a branch that I hadn’t pushed to remote yet. I was so glad that I could recover it all in <5 commands.

traches,

https://imgs.xkcd.com/comics/git_2x.png

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,
  • 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.

Jesus_666, in GitHub Desktop or Git CLI?

Fork.

scottyjoe9,

All hail the fork!

outdated_belated, in GitHub Desktop or Git CLI?

tig

cabhan, in Rust's static linter is called "Clippy" for a reason.

I wish this was exaggerated, but it isn’t at all. Every time I try to learn Haskell, I end up in some tutorial: “You know how you sometimes need to represent eigenvectors in an n-dimensional plane with isotonically theoretical pulsarfunctions? Haskell types make that easy!”

pkill, in GitHub Desktop or Git CLI?

gitui

catastrophicblues, in Manager: This task only takes 30 minutes. Why did it take you the whole day?

Oh god I feel so called out. I wish I paid more attention to my commit messages but I’m usually too busy fixing the directory structure and refactoring. Sigh.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #