r/GithubCopilot • u/coderinside • 3d ago
General Co-authored-by: Copilot - despite of git.addAICoAuthor: off
GPT-6.1 Sol added co-authored-by "explicitly" to the commit and pushed it, ignoring the flag from VS Code settings. "Sorry for the unwanted attribution" it said when asked about...
3
Upvotes
1
u/mike_1_1 2d ago
You can ask copilot to diable it and from then on it will not add i to any commit message!
1
u/-TrustyDwarf- 1d ago
It's a bug in VS Code, I guess it was introduced with the switch to Agent Host.. it seems to ignore some settings now that previously worked.
1
u/Ok_Tea4891 1d ago
Whatever causes the setting to be ignored, you can enforce it outside the agent with a commit-msg git hook that strips or rejects Co-authored-by trailers you don't want. Git runs that hook for every commit no matter which tool made it, so it keeps working when an editor setting gets skipped. Share it with core.hooksPath so the whole repo gets it. Keep in mind an agent can still commit with --no-verify, so if the trailer really matters, a check on the PR or in CI is the version that can't be bypassed locally.