How to push 'refs/replace' without pushing any other refs in git?

git

Solution

Found the answer in mailing-list:

git push origin 'refs/replace/*'
git fetch origin 'refs/replace/*:refs/replace/*'

Only explicit pushing and fetching do work right now in git.

Problem

I have done a replacement of one commit with another in this way: ``` * HEAD | ... | * ==> * `git replace left_commit right_commit` | | *-----/ | ... ``` This replacement is placed in .git/refs/replace folder, so I wonder - how can I push this refs to the remote end?

Original source