bash: add support for 'git replace'