Add option/setting to suppress `erase` operation

Author: becmCreated Sep 6, 2026Updated Sep 15, 2026
Labelsenhancement

Feature description

Static credentials (tokens) in automated contexts are normally valid until changed explicitly. Transient failures should not lead to erase, especially as restore requires manual interaction.

Implementing this in a central place would be preferable to modifying each provider.

Source: git-ecosystem/git-credential-manager