Whenever you’re using git the commands using composer are incredibly aggressive and often destroy work as they jump straight to these destructive methodologies. Can we please just promote more safe use of git eg. stashes, commits! where we are stashing work before we’re checking out stuff or we are committing our work before doing something crazy
1 Like
Hey, you can add any commands to the allowlist or denylist in the Cursor settings. Additionally, specify in your AI rules which commands it should execute.
Just to add, you can also put in your .cursorrules
an instruction to tell the AI it should be much safer with Git commands, explaining how you would like it to behave!
You can always use the checkpoints in Composer to revert back to points before the AI made changes, regardless of what the AI has done (although this may not fix your .git
history, only the codebase itself)
Hi mate thank you very much those are actually really good points!
Cheers
1 Like