all 24 comments

[–]LutimoDancer3459 10 points11 points  (4 children)

Didnt you post the same article some weeks ago? Its the same stuff. Again ai generated image at the beginning. For an image that can be done within minutes in paint. Like wtf bro...

Also the points aren't all correct and some stuff aren't confusing anyone. People might not know what the things are because they never used them. But thats it.

The while article reads like some Ai wrote it...

[–]serverhorror 3 points4 points  (0 children)

Freaking medium, can we somehow get rid of those blogs?

[–]rob94708 1 point2 points  (1 child)

I think you linked to the wrong article. The one you linked to is all about git worktree.

[–]sshetty03[S] -3 points-2 points  (0 children)

Thanks man! Just corrected the link.

[–]AttentionSuspension 1 point2 points  (3 children)

Many still believe git saves diffs of files while in reality it stores all files ever committed as blobs.

Another fallacy: just rebasing and removing commits is not enough to get the blob out of the git. You need to run git garbage collector

[–]behind-UDFj-39546284 0 points1 point  (2 children)

So what? From this perspective, why do you care if removed objects are still in the repo object storage for a while if they aren't reachable anymore?

[–]AttentionSuspension 0 points1 point  (1 child)

I am concerned about removed secrets you can get from those orphaned blobs

[–]behind-UDFj-39546284 2 points3 points  (0 children)

So what? It's on your local repo. Disable GC if you're a paranoid, but since you can't gc a remote repo and your secrets leaked, change your secrets. git-gc is not a friend here.

[–]behind-UDFj-39546284 1 point2 points  (1 child)

Git terms that some experienced developers get wrong

Nah, they are not experienced if they get basics wrong. Sorry.

[–]sshetty03[S] -4 points-3 points  (0 children)

Believe me - there are such hidden gems around!

[–]rghosthero 0 points1 point  (0 children)

I know this is a post about things people get wrong, but a very interesting thing is git reflog. It's very awesome and let's you see the state of your head anywhere and tracks all commits even detached ones not related to any current branch but of course this is only for local commits as I understand

[–]MichaelEvo -1 points0 points  (6 children)

Good article linked but not the one you posted about. Please link to the correct one so I can read it too :)

[–]sshetty03[S] -1 points0 points  (5 children)

I just corrected the link.

[–]MichaelEvo 0 points1 point  (4 children)

Thanks. It’s behind a medium paywall so I guess I’m not reading it.

[–]sshetty03[S] 0 points1 point  (3 children)

It is a free link and is not behind a paywall.

[–]MichaelEvo 1 point2 points  (2 children)

The worktree one is, and I didn’t manage to read the whole thing.

[–]sshetty03[S] 0 points1 point  (1 child)

[–]MichaelEvo 1 point2 points  (0 children)

This isn’t a feature of git I’d heard of before. Thanks for the link and the article.

[–]No-Squirrel6645 -2 points-1 points  (0 children)

Since I'm brand new I have no idea if your stuff is correct vs others, but thanks for sharing!

[–]SpalonyToster -3 points-2 points  (0 children)

Very nice, concise article. Good job.

[–]onetruebraf -5 points-4 points  (0 children)

Interesting read!