Earlier quoted context omitted.
Git won't catch new files the agent is adding. To get around that you can of course always add all new files, but then you'll potentially have your repo polluted with a bunch of temporary scratch files instead. You can typically go back and edit git history. But it will require force push and breaking changes. And a few sacrifices to ensure that it doesn't make a mistake because then your repo is potentially broken.…
uhh... .gitignore solves that right?
Claude Code Checkpoints
121–130 of 136 posts
Re: Claude Code Checkpoints
#122Earlier quoted context omitted.
IME, the benefit is ease of branching paths. For example, if I'm working on a feature I can do something like this: - Put tests in one commit - Tell Claude to come up with several approaches where I'm not exactly sure what the best might be - Put approach 1 into a commit, 2 into a separate one, etc. These approach commits all live side by side instead of stacked on top of each other. - At any point I can create a new…
git has worktrees for this, I use them all the time
Re: Claude Code Checkpoints
#123Re: Claude Code Checkpoints
#124Earlier quoted context omitted.
Pretty much bang on. I do have to remind myself that discipline in commit messages helps future me.
Claude Code produces pretty good commit messages, IMO. Just tell it: "commit".
Even asking it repeatedly and putting not to do so in Claude.md has no effect. So I have to keep deleting that manually :)
Re: Claude Code Checkpoints
#125Earlier quoted context omitted.
Claude Code produces pretty good commit messages, IMO. Just tell it: "commit".
Except it likes to put itself as the co-author in every commit message. Even asking it repeatedly and putting not to do so in Claude.md has no effect. So I have to keep deleting that manually :)
Re: Claude Code Checkpoints
#126Here's what I do to survive macos updates, random restarts, crashes etc. I had Claude Code to configure all of this: Terminal Setup: - Alacritty as your terminal - tmux as your session manager - Auto-start tmux in Alacritty configuration Key Protection: # Alacritty auto-starts tmux sessions tmux new-session -s main # Creates persistent session # tmux shortcuts (prefix: Ctrl+a) # Sessions persist even if terminal clos…
Re: Claude Code Checkpoints
#127Here's what I do to survive macos updates, random restarts, crashes etc. I had Claude Code to configure all of this: Terminal Setup: - Alacritty as your terminal - tmux as your session manager - Auto-start tmux in Alacritty configuration Key Protection: # Alacritty auto-starts tmux sessions tmux new-session -s main # Creates persistent session # tmux shortcuts (prefix: Ctrl+a) # Sessions persist even if terminal clos…
Why not use `claude --continue`?
Re: Claude Code Checkpoints
#128Earlier quoted context omitted.
I dont understand the need for this at all. I use the git. Inside one CC session on average there will be 80-160 commits. I can revert back whatever I want whenever I want. Whenever context gets hairy I clear and ask CC to review specific commits to continue or whatever. I must be missing something here completely what is the need for jj at all…
IME, the benefit is ease of branching paths. For example, if I'm working on a feature I can do something like this: - Put tests in one commit - Tell Claude to come up with several approaches where I'm not exactly sure what the best might be - Put approach 1 into a commit, 2 into a separate one, etc. These approach commits all live side by side instead of stacked on top of each other. - At any point I can create a new…
Re: Claude Code Checkpoints
#129Earlier quoted context omitted.
Actually, the ability to retain the current version when jumping back in conversation history is extremely useful for one reason: trimming context. For example I could work on adding a feature X, which will add some context. Then I rewind and add feature Y, etc. This helps delay compaction.
Yes, as I said there needs to be a way to jump back without rolling back the code as well!
Re: Claude Code Checkpoints
#130I tend to have auto-accept on for edits, and once Claude is done with a task I'll just use git to review and stage the changes, sometimes commit them when it's a logical spot for it. I wouldn't want to have Claude auto-commit everything it does (because I sometimes revert its changes), nor would I want to YOLO it without any git repo... This seems like a nice tool, but for someone who has a very different workflow.
As someone who doesn't use CC, auto-commit seems like it would be the easiest way to manage changes. It's easy enough to revert or edit a commit if I don't like what happened.