29 points

Do I really have to escape my dots in a .gitignore?

permalink
report
reply
28 points
*

I really don’t think so. The documentation says nothing of the like.

Maybe someone thought it’s a regex pattern, where escaping dots would make sense. But yeah, it mostly works like glob patterns instead.

permalink
report
parent
reply
3 points

Not usually

permalink
report
parent
reply
4 points

nah

permalink
report
parent
reply
3 points

Also don’t need trailing slash

permalink
report
parent
reply
7 points
*

Creating a mucj larger dl. What a dick.

permalink
report
reply
139 points

You already stopped Steven in a prior commit.

Also, if this is an organization setting, I’m extremely disappointed in your PR review process. If someone is committing vendor code to the repo someone else should reject the pull.

permalink
report
reply
106 points

What if I told you a lot of companies don’t have solid review requirement processes? Some barely use version control at all

permalink
report
parent
reply
2 points
*

Those companies probably also pay ABSOLUTE SHITTER

permalink
report
parent
reply
2 points

Competence is expensive. Supply is low and demand is high.

permalink
report
parent
reply
32 points

Sure, I understand… but if you’re at one of those companies you should introduce it.

permalink
report
parent
reply
9 points

Eh, if everyone knows what they’re doing, it can be much better to not have it and rather do more pairing.

But yes, obviously Steven does not know what they’re doing.

permalink
report
parent
reply
27 points

Yeah… Usually if you join a company with bad practices it’s because the people who already work there don’t want to do things properly. They tend to not react well to the new guy telling them what they’re doing wrong.

Only really feasible if you’re the boss, or you have an unreasonable amount of patience.

permalink
report
parent
reply
12 points
*

I’ve seen people trade zip archives like Yo-Ge-oh cards useing excel as a source control manager so it could be much MUCH worse

permalink
report
parent
reply
10 points
*

Dude, put content warnings on this. I have trauma from shared drives and fucking Jared leaving the Important File open on his locked computer while he takes off for a week, locking out access to anyone else.

permalink
report
parent
reply
8 points

Fucking stop Steven, that absolute shitter

permalink
report
parent
reply
120 points

Correct me if I’m wrong, but it’s not enough to delete the files in the commit, unless you’re ok with Git tracking the large amount of data that was previously committed. Your git clones will be long, my friend

permalink
report
reply
-1 points

See this is the kind of shit that bothers me with Git and we just sort of accept it, because it’s THE STANDARD. And then we crank attach these shitty LFS solutions on the side because it don’t really work.

Give me Perforce, please.

permalink
report
parent
reply
21 points

What was perforce’s solution to this? If you delete a file in a new revision, it still kept the old data around, right? Otherwise there’d be no way to rollback.

permalink
report
parent
reply
9 points
*

Yes but Perforce is a (broadly) centralised system, so you don’t end up with the whole history on your local computer. Yes, that then has some challenges (local branches etc, which Perforce mitigates with Streams) and local development (which is mitigated in other ways).

For how most teams work, I’d choose Perforce any day. Git is specialised towards very large, often part time, hyper-distributed development (AKA Linux development), but the reality is that most teams do work with a main branch in a central location.

permalink
report
parent
reply
130 points

You’d have to rewrite the history as to never having committed those files in the first place, yes.

And then politely ask all your coworkers to reset their working environments to the “new” head of the branch, same as the old head but not quite.

Chaos ensues. Sirens in the distance wailing.

permalink
report
parent
reply
21 points

If this was committed to a branch would doing a squash merge into another branch and then nuking the old one not do the trick?

permalink
report
parent
reply
15 points

Yes, that would do the trick

permalink
report
parent
reply
35 points

Rewrite history? Difficult.

Start a new project and nuke the old one? Finger guns.

permalink
report
parent
reply
24 points

History is written by the victors. The rest of us have to nuke the project and start over.

permalink
report
parent
reply
13 points

git clone --depth=1 ?

permalink
report
parent
reply
43 points

No, don’t do that. That modifies the commit hashes, so tags no longer work.

git clone --filter=blob:none is where it’s at.

permalink
report
parent
reply
18 points
*

I don’t understand how we’re all using git and it’s not just some backend utility that we all use a sane wrapper for instead.

Everytime you want to do anything with git it’s a weird series or arcane nonsense commands and then someone cuts in saying “oh yeah but that will destroy x y and z, you have to use this other arcane nonsense command that also sounds nothing like you’re trying to do” and you sit there having no idea why either of them even kind of accomplish what you want.

permalink
report
parent
reply
5 points
*

What are you smoking? Shallow clones don’t modify commit hashes.

The only thing that you lose is history, but that usually isn’t a big deal.

--filter=blob:none probably also won’t help too much here since the problem with node_modules is more about millions of individual files rather than large files (although both can be annoying).

permalink
report
parent
reply
7 points

Thanks, didn’t know about that one.

permalink
report
parent
reply
3 points

How long did it take Steve to git push every time?

permalink
report
reply
1 point

He assumed it was like a compile step.

permalink
report
parent
reply
1 point

Once you push it once it is pretty fast.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 6.1K

    Monthly active users

  • 988

    Posts

  • 38K

    Comments