serhii.net

In the middle of the desert you can say anything you want

08 Apr 2022

Gitlab 'you cannot push commits for ..' error

git - GitLab: You cannot push commits for . You can only push commits that were committed with one of your own verified emails - Super User

Setting is per-project and lives in push rules: 2022-04-08-182256_916x417_scrot.png

I set the credentials to the right ones the usual ways:

git config user.email "my@verified-ema.il"

But the commits were still using the old identity.

Solution to fix the last commit by only setting the author to the new / current one:

git commit --amend --reset-author --no-edit
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus