“Git is to github what porn is to pornhub”
or you to youtube…
git is a blockchain without a proof of work
The proof of work is the commit content itself! Unlike some arbitrary brute force task of no value.
In some cases it’s “proof of slacking off”
I almost got a bingo by checking off things I’ve muttered to myself.
I would’ve… but mercurial isn’t better.
As an aside, stop merging into in-progress private branches… it makes the absolute worst conflicts.
[rebase needed]
I’ve had that kind of reaction - on rebases also - and most times it was in fact a code smell pointing to a case of spaghetti code.
If you get to the point that you fear upstream merges/rebases into your WIP, stop for a second and ask yourself if maybe that might be an issue with too much interpendencies inside the code itself. Code should be as close to an directed acrylic graph as possible. (doesn’t count, I was not speaking of git! :b )
What’s your workflow that merging into other people’s WIP is normal? I’m so confused
- Make Structured Commits by context
- Make a MR
- Forgot to Rebase
- Close MR
- Rebase
- Make a MR
- Forgot to push the Rebase so now all Rebase items are on my MR
- Close MR
- Reset Changes
- Push Rebased Items
- Make Structured Commits,
- Forget a file
- Reset Changes
- Make a mega Commit
- Make a MR
- Pipeline fails
commits are immutable snapshots
git interactive rebase enters, stage right
Which makes a new commit. The old commit before the rebase is still there until it’s garbage collected. Editing a commit in any way changes its hash, turning it into a new commit.
I propose: “how the f**k do i discard submodule changes”
Delete the entire directory and re clone it of course
I stand by my opinion that git should be the what VCS software uses internally and is built on. It’s an API for VCS developers to use. And repon admins.
Thev actual VCS should have it’s own API and CLI that is intuitive and shouldn’t require understanding the underlying data structure.
If that’s what you’re looking for, then: https://gitless.com/
That is what I want. Now if only it was more widespread and my employer allowed it lol
I’ve been using git for 20 years and have no idea how it works. Probably will be the next things I will do a deep dive into.
Git isn’t even that old. It was first publicly released in 2005. Unless you’re literally Linus Torvalds, it’s impossible to have used it that long. And I assume Linus does have a pretty good idea of how it works.
This one must be the person recruiters have in mind when they list multiple years of experience with technology that just came out in their job postings.
That reminds me of certain a Reddit or Twitter post some time ago where a recruiter literally told the creator of a certain library / framework that he didn’t have the required amount of experience to get the job.
Oh, shit. You got me. It’s me, Linus.
What’s up?
Do you really have no idea how git works?
Please sign your response with the GPG key for torvalds@kernel.org or I’m going to call BS.
I wrote it so much time ago I forgot.
– Linus
Sounds like you forgot how to write proper English along with that.
Hope you’re doing okay, bud. Try not to work so hard.
Sorry, my native language is Finnish.
Of course it is. Silly me, how could I forget.
How do you say “Please sign your comment with the GPG key for torvalds@kernel.org” in Finnish? Google Translate says “Allekirjoita kommenttisi GPG-avaimella osoitteeseen torvalds@kernel.org”, is that correct?