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.

Anticorp , in My Git Knowledge

If you’re pushing to master, then you’re doing it wrong.

zalgotext ,

Yeah main has been the defacto default branch name for like half a decade now

TunaCowboy ,

git whoosh --hard

learningduck ,

Wait. It’s that long?

Felt like we joke about the announcement 2 years ago. Time fly lol

zalgotext ,

Imma be honest I pulled that estimate out of my ass lol, but I feel like it was pre-pandemic? which would put it at at least 4 years ago and so holy shit I’m gonna go cry in a corner because it’s been 4 years since the start of the pandemic

throwwyacc ,

Isn’t this only the case in github? All my repos are based from master, and I would assume that’s because I init on the command line and push up to the remote?

AA5B ,

GitLab also changed a few years back. We host our own, so got the update later than people using the service … it was a bit of an argument at first since everyone wanted to stick with the familiar, but laziness won out. Unfortunately, it’s not really justifiable to go back and change legacy projects, so now it’s inconsistent

throwwyacc ,

If you don’t have any scripts that rely on branch name it should be pretty trivial actually. But I wouldn’t be shocked if you had a few dozen scripts that nobody has looked at in the last century lol

AA5B ,

The question actually came up for a new tool to help automate dependency updates. Do we need to change the config to account for the inconsistency?

It turns out we don’t: it correctly uses the default branch, no matter what it’s called. However we had to consider the question. and investigate. It spent someone’s time

uis ,

git send-email

Hawk ,

Why? I almost always have master/dev/stable.

TunaCowboy ,

You should not be pushing into your main/master/whatever branch.

All the main/master replies completely miss the point, further emphasizing sirsirsalot’s statement.

Hawk ,

I think I’ll keep doing it. It’s worked fine for the past decade 🤷

Solemn ,

It works fine for small projects. I think that with more than 2-3 devs a PR based strategy works better for enforcing review and just makes life easier in general, since you end up with less stuff like force pushes to fix minor things like whitespace errors that break everyone’s local.

Tanoh ,

Different workflows.

Korne127 , in My Git Knowledge
@Korne127@lemmy.world avatar

How about git commit-tree -p branch1 -p branch2 … -m “Dummy Message”

darkpanda , in My Git Knowledge

Learn to use git bisect. If you have unit tests, which of course you should, it can save you so much time finding weird breakages.

xthexder ,
@xthexder@l.sw0.com avatar

With automated CI, I’ve had very few times where bisect is useful. Either the bug was introduced 1-2 commits ago, or it’s always been there and the exact commit is irrelevant to the solution, since you just fix it forward.

LostXOR , in My Git Knowledge
SomeBoyo , in [Closed] Looking for new moderators #302

Sounds interesting. Might do it if I qualify.

UlrikHD OP ,
@UlrikHD@programming.dev avatar

programming.dev will migrate over to (lemmy compatible) Sublinks once it’s ready, which will feature a different set of mod features. For that reason we will need new moderators to have an active programming.dev account. If you’re willing keep an active user account on our instance let me know. We would prefer people we know will actively use their mod account to make sure reports are handled in a timely manner.

BurningTurtle ,
@BurningTurtle@programming.dev avatar

This is my programming.dev account

UlrikHD OP ,
@UlrikHD@programming.dev avatar

Added as moderator

SomeBoyo , in My Git Knowledge

git blame is another good one

laurelraven ,

Yes, I think we all like to blame git

anzo , in [Closed] Looking for new moderators #302

You can count on me.

UlrikHD OP ,
@UlrikHD@programming.dev avatar

Added as a moderator, we will likely add at least one more if there are more volunteers showing up.

vampire , in MySQL moment

Say it with me everyone, INDICES

Paulemeister , in My Git Knowledge

git commit -am

uis , (edited )

You don’t just git to edit past commit

anzo , in Positive Affirmations for Site Reliability Engineers

This post is a duplicate to lemmy.world/post/12486369 hence it’s locked.

cows_are_underrated , in My Git Knowledge

Gut clone

Cwilliams ,

<span style="color:#323232;">cat ~/.bash_history </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">grep </span><span style="color:#183691;">"gut add" </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">wc -l
</span>

I’ve typed that more times than I thought…

dan ,
@dan@upvote.au avatar

alias gut=git

uis ,

echo alias gut=git >> ~/.bashrc

KairuByte , in [Closed] Looking for new moderators #302
@KairuByte@lemmy.dbzer0.com avatar

I’d volunteer, but can’t rightly say I’d keep an active programming.dev account. Sadly none of the clients I use would alert me to new things on it, so I’d likely forget to check.

UlrikHD OP ,
@UlrikHD@programming.dev avatar

Appreciate the offer, but we want to try to avoid another situation with reports not being seen by mods for weeks.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

I completely understand. If mods from other instances turn out to work for yall, gimme a shout. I’m typically quite active on my main account.

gazter , in My Git Knowledge

As someone who knows that they know very little about git, this thread makes me think I’m not alone.

laurelraven ,

I think advanced git knowledge, like RegEx, is the exception, while the norm is to know the tiny handful of day to day useful bits

lhamil64 ,

How is regex git knowledge? I guess you can use regular expressions with git grep but it’s certainly not a git-oriented concept…

MrRazamataz ,
@MrRazamataz@lemmy.razbot.xyz avatar

what. that’s not what they said. they are comparing git knowledge to regex knowledge.

Astongt615 ,

Ah, thanks for the explanation. I too misunderstood the inflection.

MrRazamataz ,
@MrRazamataz@lemmy.razbot.xyz avatar

no worries

laurelraven ,

I don’t even know how to respond to this considering it has nothing to do with what I said…

survivalmachine ,

There are at least two ways to parse your statement, and they interpreted it differently from your intention.

laurelraven ,

I guess, if you ignore the comma…

magic_lobster_party ,

Could’ve written like this to avoid the ambiguity: “I think advanced git knowledge, just like RegEx, …”

lhamil64 ,

Rereading it, I now understand what you meant. I interpreted the “like regex” as an example of advanced git knowledge. I’m not sure the comma helps make it unambiguous though.

laurelraven ,

Yeah, reading it again and I can see that interpretation…

This is why you shouldn’t rely on yourself alone for proofreading your writing, I probably could have read that a hundred times and not seen another way to read it without someone else pointing it out

ramjambamalam , in My Git Knowledge

git gud

aeharding ,
@aeharding@lemmy.world avatar

git: ‘gud’ is not a git command. See ‘git --help’.

rekt

Adanisi ,
@Adanisi@lemmy.zip avatar

They should add that command, just to screw up this joke

uis ,

git help

Nalivai ,

<span style="color:#323232;">zsh: command not found: rekt
</span><span style="color:#323232;">
</span>
theFibonacciEffect ,

git rekt

Wilzax , in My Git Knowledge

So do you guys pronounce it git or jit

d00phy ,

The holy war we deserve.

SpaceCowboy ,
@SpaceCowboy@lemmy.ca avatar

I pronounce it the correct way you silly git!

Wiz ,

Git off my lawn. Git!

m12421k ,

fortunately this one isn’t an acronym. so the pronunciation is obvious. 😊

Wilzax ,

Acronyms are still pronounced like the words they most closely resemble though

shasta ,

But git is not an acronym

madcaesar ,

This guy jits it

ikidd ,
@ikidd@lemmy.world avatar

Is that what we’re going to do tonight, we’re gonna fight?

jenny_ball ,
@jenny_ball@lemmy.world avatar

lol it’s on now!

DaleGribble88 ,
@DaleGribble88@programming.dev avatar
257m ,

Don’t start this. Its not like gif. Git is clearly pronounced like git. There is no possible argument you can make otherwise.

Wilzax ,

Same could be said about gif yet here are

WeLoveCastingSpellz ,

no

RandysGut ,
@RandysGut@lemmy.world avatar

The same as in giraffes giving ginormous gifts

Wiz ,

So, it’s pronounced “jight”?

ohlaph ,

jean, we pronounce it jean.

Sorse ,
@Sorse@discuss.tchncs.de avatar

Yit

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