git commit-ai "<message>"
I posted about this last weekend, but I find it frustrating how we don’t have good standards for talking about coauthored commits with AI. I think it’s useful to know which code is hand-crafted and what is partially (or fully) AI generated.
Was messing with it today, and created this simple co-author alias which adds cursor (or whatever ai you’re using as the coauthor to a commit so teams can track).
Feel free to edit / modify, but this is helpful to me as I’m tracking commits that are ai-assisted and helps me take credit for my work.
git config --global alias.commit-ai '!f() { git commit -m "$1" --trailer "Co-authored-by: Cursor AI <ai@cursor.com>"; }; f'