git rebase - what happens downstream when force pushing a git rebased history -
imagine forces rebased push , people downstream have been doing things, happen them? have remerge conflicts again?
rebasing causes commits recreated, new objects incompatible old ones. since replace branch pointer, still has references old commit objects (i.e. fetched repository before rebased it) have manually resolve resetting branches (local or remote branches) new commits. difficult if have local changes. in case, have rebase too.
so in general, force-push of rebased commits break others’ repositories in way need manually fix it. should avoid rebasing any commit has been published in past.
if interested in happens during force-push, , how affects merges , rebases, check out my answer on question go lot more detail.
Comments
Post a Comment