Commit 7dfa250
Use -C HEAD and --force-with-lease for safer amend push
- `--amend -C HEAD` instead of `--amend --no-edit`: preserves the
original commit's author (not just message); bot becomes committer only
- `--force-with-lease` instead of `--force`: fails if origin has advanced
since checkout, preventing accidental overwrite of concurrent pushes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7c97831 commit 7dfa250
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments