atfeel

有用 codex 的人吗,每次让他改代码前都要手动检查和提交 git 才能用回滚功能?

  •  
  •   atfeel · 1 day ago · 815 views
    有用 codex 的人吗,是不是每次让他改代码前都要手动检查和提交 git 才能用回滚功能吗?

    这样不会忘了吗?万一灵感来了,急着写想法,忘了手动执行 add 和 commit ,想回滚代码,那不就死翘翘了。。

    我第一次,感觉这设计很弱智,是我理解错了吗?
    7 replies    2026-06-05 18:09:32 +08:00
    peteretep
        1
    peteretep  
       1 day ago
    项目说明加一句 “分批次实现并自动提交到 git”
    atfeel
        2
    atfeel  
    OP
       1 day ago
    @peteretep 意思是在 chat 里每次加上这句?还是有全局规则?
    peteretep
        3
    peteretep  
       1 day ago
    @atfeel #2 项目的 agent.md 中加,或者 codex 的 md 加
    peteretep
        4
    peteretep  
       1 day ago
    @atfeel #2 另外时代不同了,codex 足够强大。你跟他说一句 自动提交,它自己就能写到对应的 md 里
    atfeel
        5
    atfeel  
    OP
       1 day ago
    @peteretep #4 这样还是很不方便,cursor 就从来不用管这个,想撤销就撤销
    harvey09
        6
    harvey09  
       1 day ago
    codex 的桌面版撤销功能一直失败,有 git 也不行,倒是 cli 可以随便撤销
    LittleControl
        7
    LittleControl  
       1 day ago
    可以在 AGENTS.md 这样的约束文件里面加入原子提交的说明,使用 AI 开发我一直跟 AI 强调要符合 commit 提交规范和每次改动一定要原子提交
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2778 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:13 · PVG 23:13 · LAX 08:13 · JFK 11:13
    ♥ Do have faith in what you're doing.