Hacker News with Generative AI: Version Control

Thing Deleted 3 Months of Work (github.com/microsoft)
I had just downloaded vscode as an alternative and I was just playing with the source control option, seeing how it wanted to stage FIVE THOUSAND FILES I clicked discard... AND IT DELETED ALL MY FILES, ALL OF THEM, PERMANENTLY!
Find a needle in a haystack with Git bisect (jerryorr.com)
My favorite tool for finding the source of regression bug is git bisect.
GitHub trick to find the commit that deleted a file (microsoft.com)
A common problem in git is finding the commit that deleted a file.
Jujutsu: A Haven for Mercurial Users at Mozilla (ahal.ca)
One of the pleasures of working at Mozilla, has been learning and using the Mercurial version control system.
Git and Jujutsu: In Miniature (lottia.net)
Last night in bed, I realised we’d encountered a scenario at work during the day where something happened so fluidly in jujutsu that it’d make a good case story!
Mergiraf: A syntax-aware merge driver for Git (delpeuch.eu)
A central feature of Git is the ability to merge the contents of diverging revisions.
Mergiraf: a syntax-aware merge driver for Git (mergiraf.org)
There's Almost No Gitlab (danjou.info)
Do you guys support GitLab? Is there any way this can work with GitLab? Does this support merge requests?
The Art of Manually Editing Hunks (kennyballou.com)
There's a certain art to editing hunks, seemingly arcane. Hunks are blocks of changes typically found in unified diff patch files, or, more commonly today, found in Git patches.
Beyond "Commit" and "Push": 5 Advanced Git Features You Should Know (git-tower.com)
Many developers work with Git every day, adding commits, creating branches, and pushing or pulling the latest changes. However, Git offers a wide range of advanced features beyond these basics that few developers know about.
Git commit with hash `0000000` (github.com/JuliaAPlavin)
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KitOps: Only Standards-Based Packaging and Versioning Tool for AI/ML Projects (kitops.ml)
KitOps is an innovative open-source project designed to enhance collaboration among data scientists, application developers, and SREs working on integrating or managing self-hosted AI/ML models.
Loro 1.0: A High-Performance CRDTs Library with Version Control (loro.dev)
Uv pep440: rewrite the parser and make version comparisons cheaper (github.com/astral-sh)
This PR builds on #780 by making both version parsing faster, and perhaps more importantly, making version comparisons much faster.
Loro 1.0: A High-Performance CRDTs Library with Version Control (loro.dev)
GitButler now supports first class conflicts, making rebasing less annoying (gitbutler.com)
GitButler now supports first class conflicts, which makes rebasing much less annoying. What is "fearless rebasing"?
How I Use Git (thorstenball.com)
Recently I tried to explain to a colleague my mental model for when to put something in the same pull request and when not to. I caught myself saying “well, except…” a few times, I decided to write down how I use git — to examine my idiosyncracies, see where I could improve, and possibly share something useful.
S3 as a Git remote and LFS server (github.com/awslabs)
This library enables to use Amazon S3 as a git remote and LFS server.
How I use git (thorstenball.com)
Recently I tried to explain to a colleague my mental model for when to put something in the same pull request and when not to. I caught myself saying “well, except…” a few times, I decided to write down how I use git — to examine my idiosyncracies, see where I could improve, and possibly share something useful.
Steve's Jujutsu Tutorial (steveklabnik.github.io)
Hi there, I'm Steve. This is a tutorial for Jujutsu—a version control system.
How I Use Git (thorstenball.com)
Recently I tried to explain to a colleague my mental model for when to put something in the same pull request and when not to. I caught myself saying “well, except…” a few times, I decided to write down how I use git — to examine my idiosyncracies, see where I could improve, and possibly share something useful.
A bash script to move untracked files out of a checked-out Git repository (github.com/blackbit42)
This is a simple bash script that helps you to quickly, temporarily move untracked files out of a checked-out git repository.
Using a separate Go module for your tools.go (jvt.me)
In Managing your Go tool versions with go.mod and a tools.go, I mentioned how you can use a tools.go to track any dependencies your project needs for i.e. linting or go generates.
Tell HN: GitHub now recommends using its own `gh` tool to clone repositories (ycombinator.com)
GitHub now recommends using its own `gh` tool to clone repositories
Git-absorb: Git commit –fixup, but automatic (github.com/tummychow)
This is a port of Facebook's hg absorb, which I first read about on mozilla.dev.version-control:
How to check that all the changes in a Git branch have been merge into upstream (microsoft.com)
If you try to delete a branch that contains changes that haven’t been merged to its upstream, git warns you, the branch is not fully merged.
How to clone by commit found via commit referencing to different fork on GitHub? (ycombinator.com)
Hi, I'm sure everyone read an article "Anyone can Access Deleted and Private Repository Data on GitHub" https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github.
Learn Git Branching (learngitbranching.js.org)
Radicle 1.0 – A local-first, P2P alternative to GitHub (radicle.xyz)
On March 26th, we announced the first release candidate for Radicle 1.0. Today, after five months of feedback and 17 release candidates, we are ready to launch Radicle 1.0.
The Many SHAs of a GitHub Pull Request (kenmuse.com)
Many people don’t realize it, but pull requests actually have multiple “identities” when an Action workflow runs. There are actually multiple SHAs that represent different parts of the lifecycle during a continuous integration build. This can be confusing for teams that are trying to implement advanced processes, and it often lead to mistakes. In some cases, it leads to a misunderstanding – thinking that the build is testing the branch itself instead of a simulated merge to the target branch.