If I use git commit --amend then the previous commit (say commit A) is overwritten, which is not completely unreachable since git reflog remembers it.
My questions are:
- If now I do a
git push, will the commit A be pushed to the remote? - If yes, how about completely unreachable objects (for example, after
git reflog expire --expire-unreachable=nowto make the reflog forget the commit A) - If no, how to make it be pushed as well