Closed kilianyp closed 11 months ago
git commit --amend
: has issues and shouldn't be used when running with git spr. The issue stems from the way commit-ids are added to the commit message. If my memory is correct, using the --amend flag doesn't allow for adding this commit id.
Managing a stack does require to know where to amend fixes, and at times I also have this situation.
The easy way out is to combine the two commits into one. I do this by running 'git rebate -i ...' a marking commits as fixup. This will combine the two prs into one and unblock you.
The hard approach requires some git vizardry that is not in the scope of this issue, but you basically has to edit commits which can also be done using git rebase, and move the code from one commit to the other.
thanks for clarifiying 👍
I wanted to try spr as I really like the concept of it.
How would I resolve following issue:
I accidentally amended the linting fix to Commit B, but now I can't apply the fix again for Commit A and the CI is failing there.
I tried to manually apply the linting to Commit A using
git commit --amend
, but nowgit spr update
doesn't see that commit somehow.