Git prevents pushing after amending a commit

This should only be the case if you’re amending an already-pushed commit. Generally you should never do that as you’re then modifying published history. In your case however, you should be able to get away with push -f, which will overwrite the remote commit with your amended revision.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)