Helper scripts to save/activate current credentials before/after commit.