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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -