HackerTrans
トップ新着トレンドコメント過去質問紹介求人

cerved

no profile record

コメント

cerved
·先月·議論
ofc if you're running AI agents in YOLO mode — clones means you don't need to worry that Sonnet is going to see your .git/index.lock file and go "this is blocking me, let's rm -f this" and corrupt all your work that you never bothered pushing
cerved
·先月·議論
Worktrees effectively share the entire state of the repo. Only limitation is that a branch can only be checked out in one repo at a time.

Clones only share the immutable object store

For most practical uses of same repo checking out different branches locally, worktrees are better.

The nice thing about clones is that you can have a backup clone, a wip clone, a review clone where you don't clutter the amount of local branch refs
cerved
·先月·議論
Doesn't work. You need to mount both the worktree and the repo which defeats the point
cerved
·先月·議論
you can also setup a local remote which hardlinks the index so it doesn't occupy more space. Why? Idk. You don't want to share stash, rerere-cache, branches whatever.

Also handy if you're running an agent in a container on the local fs. Set up a local clone, contain the agent to that repo folder and have it hack away on that. Later, you step out of the container and do the syncing. You can't use worktrees in this situations.

Bare repos are also pretty cool. You can clone the git mailing list as a bare repo and search for threads there instead of setting up an mbox (same for the kernel obviously)
cerved
·2 か月前·議論
Fwiw you can create your own trailers

    Yolo-Slopped-By: Sonnet-4.5 <[email protected]>
https://git-scm.com/docs/git-interpret-trailers
cerved
·2 か月前·議論
if you want to reason about language correctness you are better off using linters, compilers and things like fuzzing

> the trend is AI also does the code review

please no. Keep at least four eyes on all code you ship
cerved
·2 か月前·議論
Anthropic obviously vibe code everything and it shows
cerved
·3 か月前·議論
You use gh to interact with the forge, git to interact with the repo.

For example

  gh pr checks --watch
will run and poll the CI checks of a PR and exit 0 once they all pass
cerved
·3 か月前·議論
> Starlink Consumer Broadband at $380B (9.2M subscribers, ~38x revenue)

I mean that Starlinks consumer broadband is valued at ~38x revenue, when other telcos are valued around 1.5x revenue. That revenue is 2533% more expensive, why pay such a big premium for something that's essentially the same?
cerved
·3 か月前·議論
Anthropic should run it on their own code
cerved
·3 か月前·議論
not strictly speaking, but in practice it's the tip of the remote default branch
cerved
·3 か月前·議論
For $380B you can get both AT&T and Verizon and you pay ~1.55x the revenue. Why pay 38x for Starlink?
cerved
·4 か月前·議論
Tip, you may want to use origin/HEAD over origin/master
cerved
·4 か月前·議論
It does
cerved
·4 か月前·議論
Would me be nice to try this on lcg (CP-SAT) solvers
cerved
·4 か月前·議論
Is the a b test tired to the installation or the user?
cerved
·4 か月前·議論
I instruct Claude to write like peff, writes much better commit messages now
cerved
·5 か月前·議論
If only the streaming giants would let us stream in decent quality..
cerved
·7 か月前·議論
So it does a forced reset of the dirt after each bash command? Does it confuse Claude? I frequently find it lacks path awareness of what it's working directory is
cerved
·7 か月前·議論
Hey Boris, can you teach CC how to use cd?