You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git cat-file -p "$sha"| grep -q "^gpgsig"&&echo"ERROR: commit $sha has gpgsig — rewrite with filter-branch before pushing"&&exit 1
36
+
git log -1 --format="%ce""$sha"| grep -qi "anthropic"&&echo"ERROR: commit $sha has Claude committer — rewrite with filter-branch before pushing"&&exit 1
37
+
done
38
+
echo"Pre-push checks passed"
39
+
```
40
+
41
+
If any commit fails, rewrite the committer with:
42
+
43
+
```bash
44
+
git filter-branch -f --env-filter '
45
+
if [ "$GIT_COMMITTER_EMAIL" = "noreply@anthropic.com" ]; then
0 commit comments